Hi kris860911,
You can search by two different
RadTreeView properties when you bind to a
DataSource. The first one is the
Text property, which is popluated as a
DisplayMember and the second one is the
Tag property which is populated as a
ValueMember.
Currently,
RadTreeView does not implement the
FindNodeByText method, so please refer to the implementation below:
RadTreeNode FindNodeByText(RadTreeNodeCollection nodeCollection, string text) |
{ |
foreach (RadTreeNode node in nodeCollection) |
{ |
if ((node.Text == text) && (node != this.radTreeView1.SelectedNode)) |
{ |
return node; |
} |
RadTreeNode result = this.FindNodeByText(node.Nodes, text); |
if (result != null) |
{ |
return result; |
} |
} |
return null; |
} |
I hope this helps. If you have additional questions, do not hesitate to contact me.
Best wishes,
Nikolay
the Telerik team