Questions tagged [treenode]

The base element of a hierarchical tree-like data structure.

Trees are hierarchical data structures that represent undirected acyclic graphs. A tree is therefore composed of connected nodes.

One specific node is the root of the tree. The root node is connected to several nodes (sometimes called children), each of these being the root of a subtree, and so-on. A node of a tree that does not have any children is called a leaf. All nodes of the tree are connected directly or indirectly to the root.

Treenodes are usually recursive datastructures.

See also:

Specific usages:

  • In .Net framework a TreeNode is a node in TreeView UI control that displays tree-like objects.
  • In Java a TreeNode is an interface that nodes of a JTree UI control that displays tree-like objects.
630 questions
0
votes
6 answers

Differences between TreeNode and TreeNode[]?

I´m a newbie, and I can´t view the difference between TreeNode and TreeNode[] the error that returns is "Cannot implicitly convert type 'System.Windows.Forms.TreeNode[]' to'System.Windows.Forms.TreeNode'
John Gilbert
  • 159
  • 1
  • 4
  • 18
0
votes
1 answer

Why is StateImageIndex on TreeNode limted to a max value of 14?

Can someone here please explain to me why the StateImageIndex on TreeNode is limited to a maximum value of 14? It doesn't make any sense to me at all.
Marcus
  • 1,866
  • 1
  • 20
  • 33
0
votes
1 answer

how to pass attribute useArrows from TreePanel to its Treenodes in extjs?

I am trying to access useArrows property of TreePanel from TreeNode . Can anyone suggest me how to access TreePanel properties from TreeNode in extjs?
JackAss
  • 338
  • 1
  • 4
  • 17
0
votes
1 answer

Mysql merging queries

Hey guys I'm trying to join together two queries and am having an issue, maybe you can take a look, I have these two separate queries i'm trying to combine. There is a third join that will be in there to get a field that will count how many parents…
ehime
  • 8,025
  • 14
  • 51
  • 110
0
votes
1 answer

How to pick a specific treenode expanded in C#

I am showing data in db by treeview. Every data has its own code and parent code (not a level). My showing algorithm step is like this Step 1 : find data which parent code is null (Root node) Step 2 : find data which parent code is step 1 (parent…
Temp
  • 109
  • 1
  • 11
0
votes
2 answers

Using jQuery can't dynamically add more than one element

I'm making a multi file uploader using ASP.NET, and i know that IE doesn't support multiple attribute inside . So i wrote a jQuery code which checks if the user uses IE or not. If yes then show a button that let's the user add…
Rafael Adel
  • 7,673
  • 25
  • 77
  • 118
0
votes
1 answer

One checked node at a time in TreeView

I have a TreeView populated from database with lots of node, and each node may have some children and there is no fixed role like 2 depthes, it may be very deep. Imagine that the TreeView CheckBoxes are RadioButtons, I want my TreeView just to…
Mahdi Tahsildari
  • 13,065
  • 14
  • 55
  • 94
0
votes
1 answer

Java absolutely new root node

I've created a node class and a tree class. From main, I call suffixTree t = new suffixTree(string); It is on a while loop so it will always be variable t. The problem is, I want to read an input file and create a new tree for each string.…
d0pe
  • 573
  • 4
  • 9
  • 23
0
votes
1 answer

Are there any tree container that can store node which has multiple values in it?

I am writing a c++ code, it should be able to construct a multitree with the node that I wrote. But I tried to uses the tree containers that I download at the below address to store my node, but all of them seems that cannot store the node which has…
CodTango
  • 345
  • 1
  • 3
  • 15
0
votes
2 answers

SmartGWT: custom treegrid with connector lines

I coded a CustomTreegrid, and some custom leafs have triple the height of a standard Treenode /leaf. (here is how i did it: custom treenode smartgwt) But when I want to show connector lines between the nodes with setShowConnectors(true);, the…
Any1
  • 182
  • 2
  • 15
0
votes
1 answer

Java richfaces TreeNode child count

I need a solution for my problem that i was trying to solve. I had a few cheap workarounds to achive my needs, but I hope there are better solutions. So whats the problem? I have an event that handles a TreeNode to a java method. The handling of…
ZeDonDino
  • 5,072
  • 8
  • 27
  • 28
0
votes
2 answers

Primefaces TreeNode deleted at second action

In my jsf page I have a structure. I am trying to delete a node when clicking on a small icon placed on one of the columns:
zzirna
  • 69
  • 2
  • 7
0
votes
2 answers

How can I deselect the node or set the myTreeView.SelectedNode to null?

I am working on an online web application written in C# and I am using System.Web.UI.WebControls.TreeView The treeview is represented by an asp:TreeView tag embedded on the webpage. its weird, I'm using .NET Framework 4, and if I try something like…
crazyTech
  • 1,379
  • 3
  • 32
  • 67
0
votes
3 answers

Change name of currently added Node

I am looking to change to name of the added node of a directory tree. private static TreeNode GetDirectoryNodes(string path) { var dir = new DirectoryInfo(path); var node = new TreeNode(path); …
Sam Stephenson
  • 5,200
  • 5
  • 27
  • 44
0
votes
1 answer

What variable is used to store treeview data

I am looking to create the data for a treeview in a dll. I then what to use that data to form a treeview in a UI. However I cannot figure out how to store this information in a variable i.e. string int double obivously it is neither of these but I…
Sam Stephenson
  • 5,200
  • 5
  • 27
  • 44