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

2 posts, 0 answers
  1. Jack
    Jack avatar
    1 posts
    Member since:
    May 2015

    Posted 03 May 2015 Link to this post

     

    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!!

     

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 04 May 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top