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

Select node programatically

3 Answers 179 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Inge Wandsvik
Top achievements
Rank 1
Inge Wandsvik asked on 16 Jun 2008, 12:10 PM

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()  
 

3 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 16 Jun 2008, 05:48 PM
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
0
Inge Wandsvik
Top achievements
Rank 1
answered on 17 Jun 2008, 06:40 AM
Thanks, it works :-)
0
Coldapoy
Top achievements
Rank 2
answered on 16 Jan 2009, 03:02 AM
hi,

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

thanks...

more power!
Tags
TreeView
Asked by
Inge Wandsvik
Top achievements
Rank 1
Answers by
Helen
Telerik team
Inge Wandsvik
Top achievements
Rank 1
Coldapoy
Top achievements
Rank 2
Share this question
or