cancel
Showing results for 
Search instead for 
Did you mean: 

TreeTable iterate through nodes and select a node programmatically

Former Member
0 Kudos

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


monika17
Newcomer
0 Kudos

I have a similar problem. Did you find the solution

Accepted Solutions (0)

Answers (1)

Answers (1)

BjörnB
Participant

Hello,

did you already find a solution for this case?

I have a similiar problem.

Regards,

Björn