treeview

How can I programmatically select or scroll to a TreeNode in a TreeView based on a string path?

Hello, I am implementing one of the common scenerios of a TreeView control and I am using a drives, files and folders. to make a File System. That means each node potentially has a path. Problem is, we have the ensureVisible method but am not entirely convinced this does what it says it does. There is no explicit 'setVisible' to false ...

asp.net: Button changes TreeView.Selected node to null

It seems that as soon as I click the button the treeview changes selected node to null. Is it because cliking on anything else unselets the node? how can I make the value persist so that I can use it inside the button click event? button click protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text = "-----...

Define Background Color of Alternating TreeView Rows Based on Visibility

Is there a way in WPF to define the background of alternating visible rows? I've tried setting the AlternationCount property, but that restarts for every child node which gives a weird look. Ideally what I would like is to know what the visual index of a given node is. Only expanded nodes are counted. ...

building performance counter list with C#

Im looking to build a perfmon type tool and wanted to list out the categories and counters for each as you would see in perfmon. the problem im having is that after digging in to it, it doesnt work as i expected. when you use perfmon it shows it as Category, Counter, Instance, but how you build that list is more so Category, Instance, C...

Looking for a (free) Silverlight treelist / treegrid control (multi-column treeview)

I am looking for a Silverlight 4 treelist / treegrid control (multi-column treeview; not a simple treeview). There is one at Codeplex: http://multicolumntreelist.codeplex.com, but unfortunately it is under GPLv2 and this is not applicable for me. Does anybody knows alternatvies for that? ...

Custom expand/collapse symbols in Silverlight TreeView using HierarchicalDataTemplate

I have a TreeView control where nodes are dynamically built using a HierarchicalDataTemplate. In other words, no TreeViewItems are explicitly defined in the XAML. TreeViewItems are instead created automatically when the data are bound at runtime (I can see them in Silverlight Spy). Is it possible to customize the expand/collapse symbols...

Handled RoutedEvent continues to bubble up tree

Hello: I'm developing a TreeView based control and my double click event continues to bubble up my TreeViewItem nodes. The goal is to have the TreeViewItem expand or collapse when it is double clicked. I have a style that applies an event handler for the MouseDoubleClick event to each TreeViewItem. Here's the code that handles the e...

How to render an ASP.NET TreeView programmatically?

I am trying to dynamically create a basic ASP.NET TreeView control. But when I call RenderControl() to get its output, ASP.NET throws null reference exceptions. What is ASP.NET doing behind the scenes when I declare a TreeView in .ascx/aspx that is NOT happening here? Broken: protected override void DoRender(HtmlTextWriter output...

Obout treeview double click support

I would like to know if Obout treeview supports double click the node. Our asp.net application requires using node double click in the same way that asp.net treeview implements it.(ondblclick) Note: I know user can double click the icon, but we require node double click. ...

WPF: Handle editable hierarchical data / TreeView~DataGrid hybrid

I am looking for a WPF control which is a hybrid of TreeView and DataGrid, something like the Visual Studio debugger or QuickBooks contacts list etc. Any other solution on how to handle editable hierarchical data in WPF will be very welcommed as well. ...

How do you cut, copy, and paste an extended Tree Node?

I have a c# project using version 4.0 of the .net framework, and running on VS 2010. I have created a tree view populated with some extended tree nodes. I want the user to be able to copy, cut, and paste these nodes to the clipboard via a context menu or keyboard shortcuts (and not just drag-drop). The code runs fine when copying, but w...

selecting a node in a treeview, on select of a node in a seperate treeview

hi guys, So basically i have 2 treeviews running next to each other, one shows a list of drugs that someone might be on the next shows the latests prescription date for that drug. what i am trying to achieve is someway of when the user selects a drug in treeview A, it highlights that drugs latest prescribe date in treeview B, however m...

ExtJS: load JSON from an external file into TreePanel

You can grab data from here. Instead of saving JSON as a separate variable within the script file, is it possible to create a file pointer, and populate a Tree with one config option? Saving JSON in a variable does the job, but it's quite cumbersome! ...

How to align button on wpf treeview

Hi i am looking for a way to align the buttons in my treeview so that it will look like in the same column even if it is in any level. Eg: Item1 [Button] Item2 [Button] Item3[Button] i want it to look like Item1 [Button] Item2 [Button] Item3 [Button] Any way that i can do this..? Please help ...

vb.net 3.5 treeview.sorted=false does NOT turn off sorting! why?

msdn says false is default, but whether or not I explicity set treeview1.sorted=false, it always sorts it alphabetically by the visible node text. How do I get it to stay in the order in which I load the nodes? Private Sub LoadChildren(ByVal ID As Integer, ByVal Node As TreeNode) Dim L As List(Of Integer) = DB.GetChildren(ID) ...

WPF Remove ScrollViewer from TreeView

I was wondeirng if its possible to turn off the treeview's scrollviewer easily. I have a user controil with a grid and one of the cells has a few treeviews inside of a stackpanel. the height of the control sizes automatically depending on the height of the treeviews, so there is no need for a scrollbar. The problem is i have a bunch of...

working with treeview control in web application simply displays the text

Hello. I have developed a site using the treeview control...in visual studio 2008 when i try to run, it only displays lines of text, with no treeview formatting. Is their something obvious i am missing here. Thanks ...

TreeView control displays only text

I have developed a site using the TreeView control in Visual Studio 2008. When I try to run it, it only displays lines of text, with no treeview formatting. Is their something obvious I am missing here? ...

Alert Message when clicked Treeview Node Sitemap ASP.NET, C#

Hi All, I have a Treeview Node in my Masterpage. I am binding the Sitemap as the DataSource for the Treeview. For ONE of the nodes when user clicks, I want to show an Alert Message. how that is possible to show, I need Alert Message for only one Node in the Treeview. Regards, msbyuva ...

Binding recursively in a WPF TreeView

I am trying to bind recursively to the children of an item in a TreeView. From what I can see on MSDN HierarchicalDataTemplate is the way to go, but thus far I've only been partially successful. My class: public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DocumentText test ...