Skip to Content
avatar image
Former Member

TreeTable iterate through nodes and select a node programmatically

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 10 at 08:31 AM

    Hello,

    did you already find a solution for this case?

    I have a similiar problem.

    Regards,

    Björn

    Add comment
    10|10000 characters needed characters exceeded