How to select Newly added node when Autopostback setting for NodeAdd also true

1 reply. Last post: March 7, 2016 9:45 AM by Erwin Sanders
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I need to select the new node when it is added through new button. I tried with below code in Client and server side but new node is not comming selected

Cliendt Side:

 if (node != null) {

                    node.AddNode(txt, txt);

                    for (i = 0; i < node.Nodes.length; i++) {

                        if (i == node.Nodes.length-1) {

                            var newNode = node.Nodes[i];

                            newNode.select();

                        }

                    }




All times are GMT -5. The time now is 11:28 AM.
Previous Next