6 Answers, 1 is accepted
0
Hi Rubihno,
Here is one solution: On Page_Load event find the node and set its Selected property to True.
Regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Here is one solution: On Page_Load event find the node and set its Selected property to True.
Regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 08 Oct 2008, 12:59 PM
I tried with this code..but dont'run...there are error..
Dim selectednode As RadTreeView = New RadTreeView()
selectednode.Nodes.FindNodeByValue(1).Selected = True
Dim selectednode As RadTreeView = New RadTreeView()
selectednode.Nodes.FindNodeByValue(1).Selected = True
0
Hello Rubihno,
The FindNodeByValue method accepts a parameter of type String.
Please change your code to:
Also, note that I have removed the .Node from your left side example, because in that way it will search only among the root nodes. Now it will search among all nodes.
Regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The FindNodeByValue method accepts a parameter of type String.
Please change your code to:
selectednode.FindNodeByValue("1").Selected = true; |
Also, note that I have removed the .Node from your left side example, because in that way it will search only among the root nodes. Now it will search among all nodes.
Regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 08 Oct 2008, 02:53 PM
i have this error:
selectednode.FindNodeByValue("1").Selected = True
Object reference not set to an instance of an object.
0
Hello Rubihno,
I think the best way to proceed is to open a support ticket and send us a small running project demonstrating the problem.
Thanks
Kind regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I think the best way to proceed is to open a support ticket and send us a small running project demonstrating the problem.
Thanks
Kind regards,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 10 Oct 2008, 12:09 PM
ok..thanks