Topic: how to iterate over tree nodes to find and select a node
First of all: Thanks for this really nice tree control. Good work !
What I am trying to figure out is:
How can iterate over all nodes of the tree (in forest mode) searching for an id that I have put in the data area of the nodes and then select my node?
I found on this forum how to iterate over the tree nodes here: http://mifjs.net/forum/viewtopic.php?id=24
But I get the error message: '"tree.root is undefined"
I guess this might be because I am trying to iterate over the tree right after the tree.load function call.
Does the tree's "load" function load the tree asynchronously? Maybe the tree is not there resp. not completley loaded when I try to iterate over the nodes?
But then, how can I avoid this? How do I know when the tree has been loaded completely? Is there some Event for this?