Select node programatically

4 posts, 0 answers
  1. Inge Wandsvik
    Inge Wandsvik avatar
    117 posts
    Member since:
    Sep 2006

    Posted 16 Jun 2008 Link to this post

    How can I select a node in a RadTreeView programatically? I have tried the following, which gives me only half the result i want:

    Dim myNode As RadTreeNode = RadTreeView1.FindNodeByText(myNodeText)  
    myNode.Focus()  
     

  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 16 Jun 2008 Link to this post

    Hello,

    You may try the following:

    myNode.Selected = true 


    Hope this helps.

    Regards,
    Helen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Inge Wandsvik
    Inge Wandsvik avatar
    117 posts
    Member since:
    Sep 2006

    Posted 17 Jun 2008 Link to this post

    Thanks, it works :-)
  4. Coldapoy
    Coldapoy avatar
    34 posts
    Member since:
    Jul 2008

    Posted 15 Jan 2009 Link to this post

    hi,

    just want to ask if there is anyway from the code behind to do the autofocus on the node?

    thanks...

    more power!
Back to Top