treeview

Treeview control highlighting with masterpage and content pages .. !

Hi, I have this master page. In that I have kept one treeview. I want, whenever I select any node in the treeview, the node should get highlight and the child page should appear in the right side content place holder. The following code is working fine. But as I set the navigateurl property of TreeNode control for some other child page,...

Sort flat list, group by parents

I have a flat list of pages in a mySQL Table. ID | Tab index | Page Name | parent Pages can be children of another page, specified by the "parent" property. The whole list is sorted using the "Tab index" int column. Can anybody think of a way to query this list so that Items are ordered by Tabindex Items that are children of a...

Change context menu in WPF TreeView for data

Is there a way to specify in a TreeView's HierarchicalDataTemplate to use a different context menu depending on a property on the data an item is bound to? For instance, display one context menu if Item.IsFile is true, display a different one if Item.IsFolder is tree, etc. ...

Checking a Win32 Tree View Item Automatically Checks all Child Items

I am using the Win32 API and MS Visual C++ 6 to build a tree view of a directory structure, with check boxes associated with each tree view item. My goal is to be able to check a parent folder, and have that automatically check all of its associated children. However, after digging through MSDN, I have not been able to find a control...

[ASP.NET] TreeNode.Remove doesn't work !

Hi, I have a strange problem. Let's look at that code: TreeNode tn = TreeView1.FindNode("2009/08/12 (1)"); //OK, the Node is found Now, I need to delete that node: (IT DOESN'T WORK !) (e.g. (I know that I don't need to use TreeView1.FindNode() method, but i = -1)) TreeNode tn1 = TreeView1.FindNode(tn.ValuePath); ...

Tool for documentation of TreeViews

Hello, I need to task someone (unexperienced) to do a documentation and include screenshots of treeviews containing icons and text, similar to a File explorer (but with different, existing icon images). I cannot take shots from real live applications yet. Is there any tool that I can give my guys to support this without the need of cod...

C# TreeView only shows Tags, but no values

Hi there, i got a problem with a TreeView and a XmlDataSource! The Problem is that the TreeView only shows the node-names without values! The Xml-File which is the XmlDataSource: My code: konferenz.Save("d:/datafortreeview.xml"); XmlDataSource xds = new XmlDataSource(); xds.DataFile = "d:/datafortreeview.xml"; TreeA...

Silverlight 3: Using list of UserControls as ItemsSource for TreeView

I want to populate a TreeView with UserControls, but I only want the Name property to show up, not the entire UserControl. The following code gives me weird crashes as soon as I add something to myUCs: C#: var myUCs = new ObservableCollection<UserControl>(); MyTreeView.ItemsSource = myUCs; XAML: <controls:TreeView x:Name="MyTreeView...

Variable item height in TreeView gives broken lines

Wee. So I finally figured out how the iIntegral member of TVITEMEX works. The MSDN docs didn't think to mention that setting it while inserting an item has no effect, but setting it after the item is inserted works. Yay! However, when using the TVS_HASLINES style with items of variable height, the lines are only drawn for the top part ...

WPF TreeView making the children nodes clickable.

Hi everybody! I am making a WPF program that contains a TreeView. I am having a problem right now. I am using an attached command behavior to try to open a TreeView children tree view item. Basically, the treeView item contains an ID and when you double click it. It will bring another window up showing the details that are associated...

WPF Treeview HierarchicalDataTemplate Drag and drop

I have a treeview in wpf that is built using the xaml below. It is a well structured data source, and I am having a lot of trouble dragging and dropping. I have tried several methods, all to no avail. Can anyone tell me what the standard procedure is for doing this type of thing? <TreeView x:Name="_treeView" ItemsSource="{Binding}" Gr...

Telerik Silverlight RadTreeview AutoRefresh

In my application I am using the Telerik Silverlight RadTreeView control. This is populated with hierarchical, load on demand data. My view refreshes every 60 seconds and I want to maintain the expanded nodes, the selected item and the scroll postion. What is the simplest way to acheive this? Any help much appreciated. Thanks, Mark ...

MVVM selecting a treeview item programmatically

It seems that others have had variations on this question, but from what I can tell it hasnt been addressed for folks using collections in a single view model. I have a VM that contains an ObservableCollection of objects, not a VM for each object. Therefore I dont think I can use the SelectedItem bool that is often discussed because I ...

Drag and drop between two user controls

Hi, I have a user control which has a TreeView control in it as flowing... <Grid> <!-- Tree View --> <TreeView Name="devices" ItemsSource="{Binding Entities}" AllowDrop="True"> <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <EventSette...

Preventing WPF TreeView's GotFocus event from bubbling up the tree

I'm trying to write an event handler that fires every time a node in a TreeView gets the focus. The problem I'm running into is that the event handler fires on the TreeViewItem (node) that I click on with the mouse, and then it continues to bubble up the control tree, even though I've set e.Handled = true on the RoutedEventArgs provided...

How to dynamically create a tree view in asp.net ?

Hi, I have 2 database tables named Categories and SubCategories and I want to create an Unordered List inside my asp.net web form like a tree view like ul li a href=""CategoryDynamicData/li ul li SubCategoryDynamicData li .. .. .. Any algorithms for that ? I couldn't nest 2 repeaters ? ...

How to mix databound and static levels in a TreeView?

I have a collection of Database objects, each containing collections of Schema objects and User objects. I want to bind them to a TreeView, but adding additional static levels in the hierarchy, so that the resulting TreeView looks more or less like this: <TreeView> <TreeViewItem Header="All the databases:"> <TreeViewItem Header="Db1"...

Enumerating Collections that are not inherently IEnumerable ?

When you want to recursively enumerate a hierarchical object, selecting some elements based on some criteria, there are numerous examples of techniques like "flattening" and then filtering using Linq : like those found here : link text But, when you are enumerating something like the Controls collection of a Form, or the Nodes collecti...

Is there anyway to override how the ASP.NET TreeNode Control's renders itself?

What I am trying to do is change the TreeView into a table tree view, an expandable tree that contains cells for other related data per each node. The problem is I have not found anyway to hack around the "internal Render" method of the TreeNode object (it's not a Control) or the protected internal RenderContents of the calling TreeView...

jquery treeview highlight selected

Is highlighting the selected item supported in jquery treeview? Can you point me at sample code demonstrating? ...