I'm spending a lot of time manually expanding deeply-nested folders in tree views like the Project Explorer and the File Search result tree. Is there a keyboard shortcut or menu command to expand all folders?
...
I have a TreeView wich has many types of items but they all inherit from a base class. Besides the TreeView there is a MasterDetail view for the selected item.
Below the MasterDetail view I wan't to have a edit button that changes the MasterDetail view into edit view.
I'm doing this by having the master detail view as a ContentPresente...
I have treeview and a context menu that is shown for every node.
One node has the selection. I move now with the mouse to another node and open the context menu with a righ-mouse-click. Now there is the problem, that the selection is still on the old new node.
How can I prevent, that the menu pops up, if the user haven't selected the no...
Hi, I'm trying to build a tree from json data, this data are loaded on demand from php files. My problem is that i can't find a way to get to lvl 3 ;). Here is my code:
$(document).ready(function()
{
//Get the screen height and width
var Height = $(document).height()/2;
var Width = $(window).width...
I'm using WCF and MVVM pattern to populate a tree view control and I need the selected item passed as a parameter for another method in the view model (to populate a different control).
The treeview populates just fine but the selected value is not being passed to the view model. e.g. in the viewmodel:
private ICollectionView m_S...
How do you adjust a treeview control such that it comes up fully expanded?
...
Hi all,
I am using a Custom TreeView (whit custom item style) bound to an ObservableCollection. I have a function that walks the tree and calculates/stores items' coordinates with the purpose of drawing some custom shapes over the tree. It uses something like this:
(...)
FrameworkElement grid = VisualTreeHelper.GetChild(currentParent, 0...
I am new to WPF and am having issues with associating a value with an object. I have a TreeView with CheckBoxes and I am wondering how I can associate an object to each checkbox. I want to be able to select all the checked checkboxes (no problem) and get a list of objects that are associated with each checked box.
For example, let's...
I am using a HierarchicalDataTemplate to bind my classes to a TreeView with checkboxes. I have the code working fine and everything is displayed fine, but I'd like to be able to get a list of children of an item in my treeview.
When a checkbox is clicked, I want to be able to select the parent nodes and child nodes. If I had access to...
The following code is taken direct from Microsoft at http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.aftercheck%28VS.80%29.aspx.
// Updates all child tree nodes recursively.
private void CheckAllChildNodes(TreeNode treeNode, bool nodeChecked)
{
foreach (TreeNode node in treeNode.Nodes)
{
node.Checke...
OK I got a project that has a application layer, web layer and a data layer shared by the other two layers.
Now I have one part that is Hierarchical data that the application has to be able to look over, edit and add new to.
So at the top is Company wich can have many Divisions and each division has Employees & Production Licenses (tw...
I found this site: http://www.silobreaker.com/FlashNetwork.aspx?DrillDownItems=11_81046 and i'm trying to figure out how such a flash component can be made. I'm sure the data points mentioned are predefined beforehand rather than "live", so thta part's fine, but how are the secondary nodes spread out, how does double clicking on another ...
How do you get the level of a treeviewitem in WPF C#? In windows forms there is a .Level member of the treeview class but there does not seem to be one for WPF C#.
...
I'm trying to work out how to construct a tree view where child nodes are based on a single database table in which rows can link to other rows indicating the parent/child relationship.
For example, given the table:
ID ID_parent Ten
1 null a
2 1 b
3 1 c
4 null d
5 4 e
6 4 f...
I have a table "Category".It is simply a table of users, where each are identified with a unique UserId and have a corresponding ParentId (pointing to their boss' UserId). If it's a top-level user, then the ParentId is set to 0. Can someone please help me figure out the best way to populate this list in a tree view?
...
I have the following XML being set on my treeview:
<Root Value="YES">
<Child Name="Test">
<Sibling Data="Yes">
<Last UserData="1"/>
</Sibling>
<Sibling Data="No"/>
</Child>
<Child Name="Test2"/>
</Root>
and then I have set the following code in my window:
<Window.Resources>
<XmlDataProvider x:Key="dataProvider" XPath="R...
I needed to build a custom treeview as a user control. I called it for the sake of the example TreeViewEx :
<UserControl x:Class="WpfApplication4.TreeViewEx"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="root">
<...
When I programmatically collapse a TreeView node like this: treeView1.Nodes[0].Collapse(), all of the children nodes collapse under it, which is really annoying. This doesn't happen when you manually click on the node to collapse it and the children nodes remember their collapsed/expanded state. How do I prevent this from happening?
...
hello every one.....
i have a problem in .net web application...
i have created a tree view which runs perfect on windows XP but as i try to run this application on windows7 the tree view is not displayed/visible .
i could not able to find the solution so please give me the solution...
thanks in advance....
...
I want to have a select element have a submenus in a tree fashion.
I want it to be something like this:
Is there a jQuery plugin that can turn a select element into this kind of thing?
...