treeview

TreeView using Hierarchical Data Templates binding to different collections

I'm using a TreeView with a Hierarchical Data Template to bind to a View Model hierarchy, my problem is i have multiple child collections of different types (same base class though). Seems relatively simple to use the template to bind one of the collections but i'm struggling to work out how to do both. class ParentViewModel { List<...

TreeView selection problem in Silverlight 3

I have a TreeView control from System.Windows.Controls on MainPage. <controls:TreeView x:Name="Tree" SelectedItemChanged="Tree_SelectedItemChanged" /> MainPage ctor looks like this: public MainPage() { InitializeComponent(); for (int i = 0; i < 10; ++i) Tree.Items.Add(new TreeViewI...

RichFaces Tree with inline text and controls

I have implemented a tree view in RichFaces. Now I want to display data and controls inline with the tree nodes. For example: (Root Node) | ----(Tree Node 1) (Text and control Here) | ----(Tree Node 2) (Text and control Here) | ----(Tree Node 3) (Text and control Here) Here is the (simplified) mark...

Content of file to tree format using python

I have a file containing a file "dir.txt" with the below data: /home/abc/a.txt /home/abc/b.txt /home/xyz/test /home/xyz/test/d.txt /home/xyz/test/e.txt /home/xyz/test/f.txt /home/xyz /home/xyz/g.txt I want to parse the file and get the output like /home/abc/a.txt b.txt /home/xyz/test/d.txt e.txt ...

ASP.net Treeview/Listview combination or alternative: Tutorials? Help?

I need to create an ASP.net page that has a control on the page that has a five-level TreeView on the left side of the page, and accounting balances on the right side the coincide with each breakdown in the tree. Top level is company, next is group, next is program, etc... and the balances break down accordingly. I've seen that there ar...

How do I set a TreeView Check box to partially checked?

I have a asp.net treeview control that I need to be able to set a parent node to partially checked to show that child nodes are checked. Basically I need a 3 state or multi-state checkbox. All I can see from looking through the code is ways to set checked true or false. Thanks. ...

treeview expanding one parent at the time

I am using Asp.Net TreeView control ...in my treeview I have many parents and children nodes of subchildren... When a parent node get selected after post-back, It should expand and other parent nodes should collapse. Can anybody provide Sample for this scenario? ...

How to create treeview from XML file using WPF?

This is XML file <Root> <RootNode name="CurrentDbName" value="DeltaTest Backup" DesiPath="E:\BuildBackups"> <ChildNode name="Application" value="App"> <LeafNode name="Source" value="Source" SourcePath="E:\Alertv2" /> <LeafNode name="Publish" value="Publish" SourcePath="C:\Alert_Source" /> </ChildNode> <ChildNode name="Databa...

Windows -C# - Treeview without connecting lines

Hi, Is it possible to show parent node "without any lines or plus sign" and adding child nodes under same parent node which have showplusMinus enalbed. like : (ParentNode) +Child1 +Child2 +Child3 ...

summarise php array into treeview

Array ( [00000000017] => Array ( [00000000018] => Array ( [00000000035] => I-0SAYHADW4JJA [00000000038] => I-RF10EHE25KY0 [00000000039] => I-8MG3B1GT406F ) [00000000019] => I-7GM4G5N3SDJL ) [000000...

how to call window form on click event of node in tree view control in asp.net 3.5c#

in my application i need call new form on click of node in tree view control in asp.net 3.5 c#. ...

How can I get child tree nodes to appear in a WPF TreeView when binding to an ObservableCollection?

What do I have to change in the following code to make the "A Child Section" node appear as a child of the First Section and Second Section: The following code gives me a XamlParseException. XAML: <Window x:Class="TestTr32322.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.mic...

Populate a TreeView from an object

I am having a problem with a treeview in my WinForm app. I created a TreeViewItem class that holds the data. There are only 5 fields: CaseNoteID, ContactDate, ParentNoteID, InsertUser, ContactDetails. public class TreeItem { public Guid CaseNoteID; public Guid? ParentNoteID; public string ContactDate; public string Ins...

How can I convert a text-file outline list into a recursive collection of objects?

How can I convert this text file content into a recursive collection of objects that I can bind to a TreeView? i.e. I want to end up with a collection of 3 objects, the first one called countries which has a collection of three child objects: france, germany, italy, and so on... ANSWER: thanks to all who helped out on this, here's my co...

setting focus to the treeveiw selected node

i have a long treeview with scrollbar.when i click on any node it just goes to the front end of the treeview,so i want to set the focus to the selected node.how can it be done? the coding is done in asp.net& c# ...

back ground color for the selected node in a treeview

how to set the back ground color for the selected node in a treeview for an web page designed in asp.net & c#? ...

TreeNodeCollection reference problem

First off we have the almighty code! List nodes = new List(); TreeNode Temp = new TreeNode(); TreeNodeCollection nodeList = treeViewTab4DirectoryTree.Nodes; while (nodeList.Count != 0) { Temp = nodeList[0]; while (Temp.FirstNode != null) { Temp = Temp.FirstNode; } if (!nodes.Contains(Temp.FullPath)) {...

Is there a way to get the state of which TreeView nodes are expanded/collapsed?

This code example shows how to get the position of the scrollbar in a ScrollViewer (with ScrollToVerticalOffset) so that e.g. you can reset the scrollbar to this position if you need to recreate it. Is there any way to do this for a TreeView control, i.e. get a collection of node indexes which the user has expanded? ...

Finding exact node C#

I was trying to implement drag and drop in treeview . I generate the root nodes first then if I drag any item over the treeview I want to put it under exact root nodes. I need something like private void treeView1_DragOver(object sender, DragEventArgs e) { TreeNode tNode = FindNodeAtPoint(e.X, e.Y); } so that from tNode I can find ...

Populate on demand a TreeView with datas in an XML

Hi I have a large XML file (3000+ nodes) that I want to represent in a TreeView on ASP.NET. I cannot databind it to a XMLDataSource because loading the TreeView will then be way too slow (I never even waited long enough to see it finish...) So the solution for this would be to use the PopulateOnDemand property of the TreeNodes to load ...