Questions tagged [tree-nodes]
36 questions
                    
                    21
                    
            votes
                
                1 answer
            
        Adding and removing nodes from a JTree
I have a very basic JTree. As I am on a rush, I'd prefer not to use TreeModel if it is not needed. I wrote a SSCCE to expose the problem:
Sometimes I add a node. Other times I remove them. When I push Add, a node is correctly added. When I push…
         
    
    
        Roman Rdgz
        
- 12,836
- 41
- 131
- 207
                    16
                    
            votes
                
                10 answers
            
        How to get a list of all child nodes in a TreeView in .NET
I have a TreeView control in my WinForms .NET application that has multiple levels of childnodes that have childnodes with more childnodes, with no defined depth. When a user selects any parent node (not necessarily at the root level), how can I get…
         
    
    
        Matt Hanson
        
- 3,458
- 7
- 40
- 61
                    9
                    
            votes
                
                2 answers
            
        How would I represent this workflow as a JavaScript data structure?
I'm dealing with a pretty complex workflow that I want to represent as a JavaScript data structure. The flow is essentially a set of questions and answers where the answer to one question affects which question is asked next. The following is a…
         
    
    
        HartleySan
        
- 7,404
- 14
- 66
- 119
                    8
                    
            votes
                
                2 answers
            
        javascript framework for relationship visualization
Possible Duplicate:
Graph visualization code in javascript? 
I need to create a dynamic visualization for nodes and their relationships in Javascript.  What's the best framework to use?  This is what I've briefly reviewed so far:
Flare - it's…
         
    
    
        at.
        
- 50,922
- 104
- 292
- 461
                    6
                    
            votes
                
                2 answers
            
        TreeNode Right Click Option
I am working TreeView and TreeView.Nodes in my C# GUI application and want to use the right click functionality on a few nodes in my tree. I have searched quite a bit but it seems like the SelectedNode is valid only for left click and there is…
         
    
    
        zack
        
- 7,115
- 14
- 53
- 63
                    3
                    
            votes
                
                1 answer
            
        Extend ANTLR3 AST's
With ANTLR2, you could define something like this in grammar definition file:
options
{
   language = "CSharp";
   namespace = "Extended.Tokens";
}
tokens {
   TOKEN;
}
And then, you could create a class:
public… 
         
    
    
        dcg
        
- 1,144
- 1
- 22
- 38
                    3
                    
            votes
                
                2 answers
            
        UltraTree Infragistics - select all the nodes
In Infragistics UltraTree, how can one select all the nodes under a root?
         
    
    
        Bote5340
        
- 31
- 1
- 2
                    3
                    
            votes
                
                1 answer
            
        Finding the heaviest path in a binary tree efficiently - python
I am trying to solve the following: finding the weight of the heaviest node in the tree and also representing that node as a list. This is what I came up with, but I am pretty sure that it is a very messy solution. Any advice on doing it more…
         
    
    
        nanachan
        
- 1,051
- 1
- 15
- 26
                    3
                    
            votes
                
                1 answer
            
        c# XML Treeview (Plumbing)
I'm creating a XML-viewer which should be able to read every XML file and put it in a treeview.
My goal is to create a XMLViewer control, an user should be able to change certain routines in his own implementations. I provide default implementations…
         
    
    
        user1951083
        
- 261
- 1
- 5
- 20
                    2
                    
            votes
                
                4 answers
            
        HTML table DOM creates wrong number of child elements
I have  a table in my code which I am using as a look-up table, by grabbing some values from  based on the id of the  .
When I have my table typed-in…
        
            
            
                
                    
    
    
         
    
    
                
            
        
    
                    
                
                    
                    
    
        
            
                
            
    
    
        
        
            
            
                
                    
    
    
         
    
    
                
            
        
    
                    
                
                    
                    
    
        
            
                
            
    
    
        
        
            
            
                
                    
    
    
         
    
    
                
            
        
    
                    
                
                    
                    
    
        
            
                
            
    
    
        
        
            
            
                
                    
    
    
         
    
    
                
            
        
    
                    
                
                    
                    
    
        
            
                
            
    
    
        
        
            
            
                
                    
    
    
         
    
    
                
            
        
    
                    
                
                    
                    
    
        
            
                
            
    
    
        
        
            
            
                
                    
    
    
    
    
                
            
        
    
                    
                
                
            
        
            
        
        
        
        
     
| 1.34 | 0.67 | 1 | 1.25 | 
 
    
    
        user414071
        
- 23
- 2
                    2
                    
            votes
                
                1 answer
            
        Argument for IEnumerator on TreeNode
what is the valid argument for IEnumerator on TreeNode? 
i got the error on this line:
IEnumerator ie = tn.Nodes.GetEnumerator();
in this method:
private void parseNode(TreeNode tn)
    {
        IEnumerator ie = tn.Nodes.GetEnumerator();
       …
         
    
    
        Vincent Dagpin
        
- 3,581
- 13
- 55
- 85
                    2
                    
            votes
                
                2 answers
            
        Linked List in C
I'm having problem with double linked lists: I can't get data from nodes throgh another node. This way: node->prev->prev. But node->prev is fine.
Anyone knows why?
The code:
/*Add value - right side*/
void addListRight(doubleList *node, int value)
 …
         
    
    
        Shuryon
        
- 55
- 1
- 1
- 4
                    2
                    
            votes
                
                2 answers
            
        Is it possible to pass variable as parameter in javascript function?
I have this function:
 protected void mytv_SelectedNodeChanged(object sender, EventArgs e)
 {
    TreeView tv = sender as TreeView;
    var nid = tv.SelectedNode.Value;
    ScriptManager.RegisterStartupScript(this, this.GetType(), "anyname",…
         
    
    
        user35
        
- 468
- 1
- 9
- 24
                    2
                    
            votes
                
                1 answer
            
        JStree 1.0 create new type
I'm trying to use jstree.
Actually I'm using the example: PHP & mySQL demo + event order that you can find on a webpage: http://www.jstree.com/demo
I need to create a new type in the tree structure, therefore I added the following lines of code in…
         
    
    
        Danilo
        
- 2,016
- 4
- 24
- 49
                    1
                    
            vote
                
                2 answers
            
        Adding a child node to specific node in VB.NET
I have a treeview on my form and in that treeview there are screen resolutions categorized to their type (categories: 16:9, 16:10, 4:3 etc...) and there are one last node which is labelled "Custom".
I would like to enable users to add their own…
        user1402902