Before we ask the obvious, I am attempting to use the 'FindNodeByKey(string)' method of the Nodes collection...
Back in the day of the UltraWebTree a similar method would search the entire node collection of the tree and return the node it found. Is there something similar with the WebDataTree, or will I have to recurse through the entire structure. Here is what I am attempting:
That works better for me than mucking with my reusable code. The second dataset contains very few records.
Hopefully, this will not force me to recurse through the Nodes on the WebDataTree level by level. I had code like that for the UltraWebTree, but scrapped it when I found the 'Find' method.
Hello BOGHRD,
Thank you for posting in our forum.
The FindNodeByKey method will only return the node on the specific Nodes collection on which you’ve called the method.
In order to find a specific node based on its key in the complete list of nodes in the tree you can use the AllNodes property which will return an array list with all nodes in the tree in depth-first order. You can loop in that collection and check the related Key of each node.
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support