Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Add WebDataTree node on client
posted

I see some posts from 2009 that indicate that nodes cannot yet be added to the WebDataTree on the client side.  Is that still true?  If not, how would one do it?

And if I need to go back to the server to add the node, is it possible to maintain the active node when returning to the client?

Thanks.

Parents
No Data
Reply
  • 37874
    posted

    Hello Frank,

    You could add nodes client-side, for example in the Initialize event, using code similar to the following:

            function treeInit(sender, args) {

                var item2 = sender.createNode("Node 5");

                sender.getNodes(0).add(item2);

            }

    Please let me know if you have any further questions.

Children