This is a migrated thread and some comments may be shown as answers.

Best way to find multiple nodes that match a criteria

1 Answer 44 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Roatin Marth
Top achievements
Rank 1
Roatin Marth asked on 30 Sep 2009, 03:13 PM
Just wondering what the recommended way it to find multiple nodes that have a certain attribute for example.

Since FindNodeByAttribute only returns one result.  I'm mainly concerned with the server side that the moment, but wouldn't mind knowing the answer for client side as well.

Thanks

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 30 Sep 2009, 06:59 PM
There are a few different ways to do it but if you check out the traversing nodes documentation article it shows how to traverse all the nodes, and also mentions the GetAllNodes() method. Your best bet will most likely be cycling through either all the nodes, or certain sections depending on what your structure is.
Tags
TreeView
Asked by
Roatin Marth
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or