Skip to Content

TreeTable iterate through nodes and select a node programmatically

Mar 21, 2017 at 11:15 AM


avatar image
Former Member


I use an TreeTable with a Binding to a OData Entity. It works, but now i want to search an specific node, and select this node.

i can get the root, and then via "children" the childs of this node

var root = binding.getNodeByIndex(0);

root.children[0].children    etc...

So i can iterate through the nodes, and find my node.

But when i found the node, i doesn't habe the index to select this node in the tree.

i know via

tree.setSelectedIndex(0);   //Select the root node.

i can select a node. But how can i find out an index of a node?

Kind Regards


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers