treeview

Can I wrap the node text in a WinForms TreeView

The ASP.NET TreeView has a NodeWrap property, is there an equivalent way of accomplishing the same thing in a WinForms TreeView? EDIT: Thanks for your suggestions of other controls, unfortunately my client will not permit the use of third-party controls. ...

How to select TreeView item from code

I have a three level treeview. How do I select any item in third level from code? I tried a method mentioned in many blogs and on stackoverflow but it seems to work only for first level (dbObject is null for items on below first level). Here is the code I'm using to select TreeViewItem. Do I miss something? public static void SetSele...

Populating TreeView with XmlDataSource without saved file

I have a .cs file that builds an xml document and stores it in a variable. I want to "inject" it into my <asp:XmlDataSource> so that I do not have to save each xml file (it is different every load). How could I go about this? In my codebehind cs file, I have: XmlDocument x = blahblah XmlDataSource MySource = new XmlDataSource(); MyS...

How to forward part of input from one control to another without losing focus?

Using WPF how can I do similar thing as done in Skype contacts window? I want to be able to press on any list item with mouse, be able to use Up/Down to navigate and filter contacts when I start typing. I also want to show what I'm typing in separated TextBox. So far I have all filtering set up through TextBox. I can navigate with arro...

Populating Treeview using Linq

I'm playing with Linq-SQL and would like to display my data in a TreeView on a form. I'm also using .net 3.5, if that matters. Now, my question - is there a better way to populate this treeview? The way I'm doing it now is like this (psuedo): for each order { OrderNode = new TreeViewNode for each product in order { Produ...

Adding some custom data to the Qt tree model

Hi, everyone! I am a noob in using model/view paradigm in Qt and have the following problem: I have a tree-like structure, that must be visualized via Qt. I found out, that QAbstractTableModel is perfect for my needs, so I write the following: class columnViewModel : public QAbstractTableModel { // some stuff... }; Everything now ...

Silverlight 3 - TreeView not getting focus

I've got a TreeView with a Hierarchical Data Template bound to an observable collection. When the collection is done loading, I run some code that selects a specific TreeViewItem and should then bring focus to the TreeView. The idea is that the user should be able to use the arrow keys to scroll through entries in the TreeView. The T...

.NET WPF - System.Windows.Controls.TreeView Adding SubItems

After you have added Items to the "root" level of a System.Windows.Controls.TreeView, what is the proper way to add in "subitems" by name? System.Windows.Controls.TreeView.Items <-- doesn't seem to have a Find() or [] by name. UPDATE: Oh, wait... is it TreeView.FindName() ? Actually looks like FindName won't work because it returns ...

Displaying a custom hierarchy.

I have a simple hirachey of Tasks similar to the snipet below: public class Task { public Guid TaskId { get; set; } public Guid ParentId { get; set; } public string Name { get; set; } public List<Task> Subtasks = new List<Task>(); } What would be be the best way to display this data? A TreeView would be look ideal but ...

How do I display hierarical data using ASP.NET?

How do I display hierarical data in ASP.NET? I have a data source that looks like this: class Tree { IEnumerable<Node> Nodes { get; set; } } class Node { string Description { get; set; } decimal Amount { get; set; } IEnumerable<Node> SubNodes { get; set; } } I would like to render is as a list of divs, like the one below....

JQuery File Tree using JSP Connector

Hi, I have a problem trying to get JQueryFileTree to work, http://abeautifulsite.net/notebook.php?article=58 I have set the root folder to the images/ folder inside my working folder, can someone please help? There are no jQuery or Javascript errors, I am sure the error is in teh JSP file or to do with the directory permissions, eve...

JQuery plugin (or otherwise JS [or amazing alternative, like Flash]) for tree editor?

I'm tearing my hair out on this one; I want / need / would like something akin to one of the many tree viewers out there, but where I can also edit the structure, the name and the type of nodes (the world doesn't just have folders and files, people). I've Googled myself silly over this, looked at which plugin I could modify to do my bidd...

ASP.NET: Display Leaf Node as Parent within TreeView Control

Hey there, Is is possible to display a node without children as a leaf node within the .NET 3.5 TreeView control? I have a treeview that displays a list of companies as nodes which would each display leaf nodes for documents belonging to that company. If a company exists without any documents I would still like it to be rendered as pa...

TreeView in GridView

Hi, I know there must be a way to do this, and perhaps someone has already done it. I googled like crazy but found nothing at all. Anyway, what I want to do is have a TreeView in the first column of a GridView using WPF, which can expand and collapse and that will show/hide the row it belongs to, pretty much something like this (the demo...

Implement Drag-Drop in Winforms using Treeview & Split Controls

I have a form that has 2 splitters. One splitter splits the form horizonally into 2 columns. The other splits the left column into 2 rows. On the left hand column, top "row" I have a treeview. On the right hand column, I have a image viewer. I want to drop a treeview node onto the image viewer and do something with it. The viewer is ...

C# - Can you data bind a TreeView control?

Typically, when I use the standard TreeView control that comes with C#/VB I write my own methods to transfer data in and out of the Tree's internal hierarchy store. There might be ways to "bind" the GUI to a data store that I can point to (such as XML files), and when the user edits the tree items, it should save it back into the store....

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node.

I set the DrawMode to OwnerDrawText and tacked on to the DrawNode event, added my code to draw the text the way I want and all works well save for some odd black selection highlighting when a node is selected. No problem, I added logic to check for if the node's state was highlighted and drew my own highlighting except the black highlig...

how to change arrow mark from left to right in treeview design asp.net 2.0

how to change arrow mark from left to right in treeview design asp.net 2.0 ...

Get TreeView Selected Node in JavaScript

Hello Friends I am looking to find a way to just simply know the selected node in TreeView using javascript. suppose there are n number of nodes in the Parent Child Relationship, then what i want to get value of the selected node in javascript so that i can manipulate and work on the values selected in javascript rather than do a full p...

WPF TreeView - Force SelectedEvent on Item that is already selected

Hello All, Summarized Question: In the WPF TreeView, how can I force the selected event on an item that is currently the selected item? Detailed Info: I am trying to add functionality to my WPF TreeView by adding multiselect using shift(for a range) and control(for toggling selection of an item). I've implemented my own SelectedItems c...