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

After serach the node, how can I focus on search results

1 Answer 54 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 04 May 2015, 01:28 AM

 

Input string in TextBox then use RadTreeView.FindNodes(string) to search, how can I do that can auto select the result node and focus on the result node?

very appreciated!!

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 May 2015, 08:07 AM
Hello Jack,

Here you are:
RadTreeNode nodeToSelect = radTreeView1.Find("node43");
nodeToSelect.Selected = true;
nodeToSelect.EnsureVisible();
radTreeView1.Focus();

More information on finding nodes is available here: http://www.telerik.com/help/winforms/treeview-working-with-nodes-finding-nodes.html. And here are the selection capabilities: http://www.telerik.com/help/winforms/treeview-working-with-nodes-selecting-nodes.html.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Treeview
Asked by
Jack
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or