treeview

GWT 2.1 Tree or CellTree?

I'm really struggling with a choice between the GWT Tree widget, which has been a part of GWT for ages; or the new CellTree, which is introduced by GWT 2.1. The tree I want to present to the user is not particularly large, but I am very concerned about responsiveness. The data at the nodes of the tree will be editable. By clicking on a...

WPF TreeView with checkboxes.

Hi all! After a lot of searching, I have not found any solution for the following problem. I need a treeview control with "checkboxed" treeview items and the CheckedItems property for convenient data binding (for example, tree view of folders' structure, when user checks folders, the size of checked folders is displayed in a textbox). B...

C# treenode node text

I'm adding Nodes to TreeView dynamically. I'm just creating labels and add them to nodes. My treeView looks like that: TreeView 1 -Node 1 - Node 1.1 -Node 1.1.1 -Node 1.1.1.A -Node 1.1.1.B -Node 1.1.2 -Node 1.1.2.A After click nodes, i want only do something if clicked node is: Node 1...

TreeViewItem Button Command binding

Good day, First question here and just learning WPF, so please be gentle... I'm trying to put together a TreeView whose items fire Commands. I'm sure there are many ways to accomplish this, but my approach has been to create a Style for the TreeViewItem with a ControlTemplate that incorporates a RadioButton for its Command functionalit...

Prevent Treeview cursor change

Hi all, I have a gtk.Treeview setup as a drag source: self.drag_source_set(gtk.gdk.BUTTON1_MASK, targets, gtk.gdk.ACTION_COPY) and it's TreeSelection is set to SELECT_MULTIPLE. But everytime I try to drag a multi row selection, the cursor jumps to the current mouse position, resetting the selection to the current row. Even though the...

XML databinding to TreeView with child nodes of different types under the same parent

Note: See the bottom of this post for the solution. I'm trying to use XAML's "HierarchicalDataTemplate" to display an xml document in a TreeView. My current XAML code will display the first child of the "Parent" node but not subsequent child nodes of different types. Can I use XAML to display children of different types under a common...

Filter WPF TreeView using MVVM

Hi, I currently have a TreeView which has the following structure: <TreeView ItemsSource="{Binding RootViewModels}" FontSize="12"> <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="local:TreeViewItemBehaviour.IsBroughtInto...

silverlight treeview

Using WCF i get data from server. Data contains Folders and these folders contain queries. I need to set folder icon(expanded collapsed) on the folder node and another icon on query. TreeView is bound to this collection using HierarchicalDataTemplate. I tryed to do it with converter but failed. I also want it to be MVVM compliant. <sdk:...

How to create a parent-child structure in WFA TreeView having a list

I have a List of structs: public struct NodeIntHwnd { public TreeNode Node; // a treeNode with a string public int Level; // level of depth public IntPtr Hwnd; // not important }; They are sorted in a List sth like: { This is a node, 0 // root This is a node, 1 // level down This is a node, 2...

Insert childnodes in to Treeview, independant of position or depth.

I'm looking for a way to be able to insert childnodes in to TreeNodes of a Treeview, no matter how deep or far. I was thinking of using a Dictionary for this, storing the pointers to each object, allowing me to find them if I need to store childnodes under them. I'm gonna start working on this, but my starting idea might be all wrong, ...

HierarchicalDataTemplate & ContextMenu & Silverlight

I have a TreeView which uses HierarchicalDataTemplate to generate its items and i want to have a context menu on items(markup below). The problem is that the menu is showing but when i click on any item nothing happens. I use MVVM so menu is bound to Commands. But i have another menu on the treeview itself and it works perfectly. How can...

What format does the TreeView control need in order to create a Tree?

I have a simple table in my database called Department. In it there's a column called ParentDepartmentID that is a self referential foreign key ID. Here's an example of the data I have for testing purposes: As you can see, Departments: Diagnostics and XRay are children to Office of Chancellor. And Laboratories is child to Diagnostics....

WPF Tree View select items when added to tree

I have a WPF TreeView which displays my ViewModel. I have a button that adds an item to a collection in the underlying ViewModel which adds a child node to the tree. This part works. What I want is the newly added item to be the SelectedItem of the tree view. I have read this already: How to programmatically select an item in a WPF T...