[CLOSED] Tree node not added

  1. #1

    [CLOSED] Tree node not added

    Hi
    the way I add node by using extjs of ext.net v1.1 but now its not working in extjs 4.x of ext.net 2.x

    Basically I manually add a treenode just like below and that was added in ext.net v1.1, so how could that added in v2.x

    _node: new Ext.tree.TreeNode({ text: 'KnowledgeBase', id: '1', leaf: true }),


    Thanks
    Last edited by Daniil; Jan 30, 2014 at 6:01 AM. Reason: [CLOSED]
  2. #2
    Hi @jesperhp,

    You can use the appendChild method.
    http://docs.sencha.com/extjs/4.2.1/#...od-appendChild

    Example
    destinationNode.appendChild({
        text: 'KnowledgeBase', 
        id: '1', 
        leaf: true
    });
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @jesperhp,

    You can use the appendChild method.
    http://docs.sencha.com/extjs/4.2.1/#...od-appendChild

    Example
    destinationNode.appendChild({
        text: 'KnowledgeBase', 
        id: '1', 
        leaf: true
    });
    Thanks
    Mark it close

Similar Threads

  1. [CLOSED] how to add a child node to the selected tree node
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 18, 2013, 1:10 AM
  2. Replies: 1
    Last Post: Apr 02, 2013, 5:50 AM
  3. Replies: 0
    Last Post: Dec 19, 2011, 12:11 AM
  4. Replies: 16
    Last Post: Jul 19, 2011, 3:53 AM
  5. [CLOSED] How to set the ID of a newly added tree node
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 11, 2011, 7:34 AM

Posting Permissions