Skip to Content
0

TreeTable iterate through nodes and select a node programmatically

Mar 21, 2017 at 11:15 AM

55

avatar image

Hello,

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

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

Stefan


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

0 Answers