Find a RadTreeNode by the Value
Environment
Product Version | 2018.3 911 |
Product | RadTreeView for WinForms |
Description
RadTreeView supports searching for nodes by the Text of the node:
It is also possible to search by a Predicate which returns an array of all nodes that match the search criteria. A common case is to look for nodes by a certain value. The following approach gives you an easy way to search the nodes by the Value property.
Search nodes by Value
Solution
In order to find the node by a given value, it is necessary to iterate all nodes recursively and check whether their Value property matches the search pattern: