Results 1 to 5 of 5

Thread: add nodes and childnodes to tree

  1. #1

    Default add nodes and childnodes to tree

    hi...
    i need to add parent nodes and child nodes to the existing tree.i'am using appendChild but it is adding only child nodes for an existing node..
    so now i need to add fresh nodes and for that child nodes.....anyone knows solution for this problem help me....

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    OK, so what is the actual problem? You can simply add an entire tree of nodes to the initial root node (just make sure the nodes you are adding to are TreeNodes and not an AsyncTreeNodes).

  3. #3

    Default

    what i want is i have some nodes and childnodes.....i want to compare these nodes and child nodes with the existing tree nodes and childnodes.if these nodes are existing no need of adding that node just i want update that node with child nodes if not existing...while adding both parent node comparison and childnode comparisons required...give some ideas and concepts to do this.....

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Some kind of recursive function that compares two nodes and if not equal, replaces the node, and if equal, calls itself for all child nodes?

  5. #5

    Default

    hi condor thank you for ur replay..can u specify which function i need to use.....

Similar Threads

  1. Treepanel: node.childNodes does not get the child nodes
    By eldioni in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 4 Jun 2012, 11:46 AM
  2. How to add icon in tree nodes
    By amanind in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 19 Oct 2010, 11:56 PM
  3. Right way to add listeners to the tree nodes
    By karantir in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 22 Sep 2009, 4:14 AM
  4. How to add action to tree nodes...
    By ilker in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Nov 2008, 10:21 AM
  5. How to dinamically add nodes to an tree?
    By LeonardoAP in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Feb 2008, 5:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •