treeview

WPF TreeView with IsVirtualizing="true" jumps around when changing focus and scrolling

I've made a simple example to reproduce a problem I'm having with the TreeView. If I select an item in the TreeView, scroll down, change the focus, and then select an item in the TreeView again, the list starts jumping around. This only happens if I have VirtualizingStackPanel.IsVirtualizing="True". Is this a known problem? Is there ...

TreeView node mapping in winform

I have a treeview control, and it's child node is mapped to element in a list, when the element in the list state changes, i need to update the corresponding treeview node, also, when user select a treenode, i can map to the element in the list, what's the best way to record the mapping? ...

ASP.NET TreeView: return to selected node.

Hello. I'm developing an ASP.NET WebForm application with .NET Framework 3.5 SP1 and C#. I have a TreeView on a page. The user can navigate throught its nodes to select one. Then the user can edit the information represented by that node in another page. I want when the user come back to that page the treeview has selected the node tha...

Expand Windows Forms TreeView node without selecting it

When I expand a TreeView node by clicking on the plus sign right to it, the node gets selected. How can I avoid this? I want to be able to expand nodes without changing the selected node (like in RegEdit.exe, for example), and only change selection when the node text is clicked . (Forgive me for what seems to be a basic question - I did...

Tk treeview column sort

Is there a way to sort the entries in a Tk Treeview by clicking the column? Surprisingly, I could not find any documentation/tutorial for this. ...

Populate a TTreeView With Directory Tree And Filtering

On a Lazarus 0.9.28.2 project I have a TTreeView, with the name DirTree on my Form(frmConvert), but I want to populate it with all the directory tree, since C:\. Like this: And when the user select the directory, in the second TTreeView, with the name FileTree, appear all the files in that directory, but filtered to show only PDFs. A...

Populate a TreeView with a string directory

How to I populate a TreeView with a directory as a string. I am using the FolderBrowserDialog to select a folder and the SelectedPath property to get the string path (i.e. C:\Users\Admin). Also, could I view files like this? ...

ASP.NET Custom Treeview with custom TreeNode

Hello, I have a question regarding the ASP.NET 3.5 Treeview and Treenodes. I'd like to build a Treeivew that supports multistate checkbox. I actually would like 4 states - checked, unchecked, indeterminate (like a tri-state box - parent is tri-state, if not all of the children are checked) and NotAppicable (this checkbox would be an X...

C# TreeView Check Number of Checked Children

I am new to using tree views and I want to be able to make sure the tree view can only have one child node checked and if someone tries to check more then one it stops the check event and deselects all parent and child nodes. How would I go about doing this? So far this is what I've got but it is acting quirky. Any suggestions? EDIT:...

Error while binding Treeview Control with Database using NHibernate

Hi Friends, Here is the code explanation and mapping files of my application private void PopulateNodes(IList<Folder> Values, TreeNodeCollection nodes) { foreach (Folder r in Values) { TreeNode tn = new TreeNode(); tn.Text = r.folderName.ToString(); tn.Va...

Treeview checked nodes not returned in order

I using TreeView with ShowCheckBoxes="All" in an ASP.NET 3.5 web application and for some reason the checked nodes are not returned in order. Lets say I have nodes A,B,C and I select B and C and hit the save button and when I check the CheckedNodes property of the Treeview the checked nodes are in order (B,C). But the next time when I go...

How to read data from xml file and add it to Treeview in Windows Form?

I have a XML file as follows, <RootNode name="CurrentDbName" value="040110"> <ChildNode name="Application" value="App"> <LeafNode name="Source" value="Source"/> <LeafNode name="Publish" value="Publish"/> </ChildNode> <ChildNode name="Database" value="DB"> <LeafNode name="Dev" value="Dev"/> ...

Dynamically change display orders of data in ColdFusion

Using ColdFusion, I'm trying to setup a menu and menu items application where you can change the order of the menu and also the menu items within the menu. I've found something relative, but it's not completely helping, http://wil-linssen.com/musings/entry/extending-the-jquery-sortable-with-ajax-mysql. So if you view the demo there, th...

Treeview Excel 2007 programatically select check boxes

I have a TreeView in excel 2007 with checkboxes. I want the checkboxes to be all selected when the tree is populated I want that when I select/unselect a parent node of the list, all its children are selected/unselected Here is the code I have written so far: Private Sub UserForm_Initialize() 'Set control defaults With Me ....

avoid treeview collapse on click of treeview text in jquery

I need to avoid the collapse of jquery treeview on click of treeview links/text. For example, if i am showing a list of directories/subdirectories in treeview, I need to collapse the treeview only while clicking the +/- image and not on clicking the directories ...

Can TreeView nodes have intermediate checked states?

Here is what I am looking to do: Represent a set of options, divided by category. Allow the user to check/uncheck all items within a category by checking/unchecking the category node. Show that some options within a category are checked by setting the category node to an intermediate checked state. From what I've read, and my l...

WPF TreeView not collapsing its formerly used space on collapse of root root

Hello, I have some objects with various collection properties that I'm displaying in a ListBox using a DataTemplate for the ItemTemplate. Within that DataTemplate is a TreeView which displays various properties as TreeViewItem children of a root TreeViewItem which represents the items being displayed in the ListBoxItem. My problem is ...

WPF Binding Issues

Hi, I'm trying to customize the TreeView control. When a user selects an item in the TreeView, I need the ActualWidth of the selected item to be stored in the item's Tag: <Style x:Key="{x:Type TreeViewItem}" TargetType="{x:Type TreeViewItem}"> <!-- ... --> <Setter Property="Template"> <Setter.Valu...

WPF treeview itemselected moves incorrectly when deleting an item

I have a treeview bound to an object tree. When I remove an object from the object tree, it is removed correctly from the tree view, but the treeview's default behaviour is to jump the selecteditem up to the deleted item's parent node. How can I change this so it jumps to the next item instead? EDIT: I updated my code with Aviad's sugg...

Why does .Net render an 's' before the root node's id in the postback args?

I created a custom treeview control that inherits from TreeView control. I have my own TreeNodes and event args but when the tree node is rendered I get: <a id="ctl00_ContentPlaceHolder1_navTreet0" style="text-decoration: none;" onclick="TreeView_SelectNode(ctl00_ContentPlaceHolder1_navTree_Data, this,'ctl00_ContentPlaceHolder1_navTree...