How to add node in wijmo.nav.TreeView dynamically

Posted by: psbmailbala on 14 September 2017, 12:03 pm EST

  • Posted 14 September 2017, 12:03 pm EST

    I have rendered wijmo tree http://wijmo.com/5/docs/topic/wijmo.nav.TreeView.Class.html#nodes. Here how to add node in wijmo.nav.TreeView dynamically.

    Could you please provide your suggestion?

  • Posted 14 September 2017, 12:03 pm EST

    Hi,

    We are working on your query and we will update you soon.

    Thanks,

    Manish Kumar Gupta

  • Posted 14 September 2017, 12:03 pm EST

    Hi,

    We are sorry, this feature is currently not supported with this control.

    Hence, we have created an enhancement request for the same with tracking id 260895.

    This will be implemented in the future releases if found feasible.

    We will let you know as soon as we get any information on this.

    Thanks,

    Manish Kumar Gupta

  • Posted 1 February 2018, 11:12 pm EST

    Hi,

    in build 384 we added an addChildNode method to the TreeView and TreeNode classes that allows you to add child nodes. For example:

    
    var newItem = { header: 'my new item' },
        node = theTree.selectedNode;
    if (node) {
        theTree.selectedNode = node.addChildNode(index, newItem);
    } else {
        theTree.selectedNode = theTree.addChildNode(index, newItem);
    }
    
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels