expand Only root Node of the Telerik RadTreeview.

Posted by Johnseelan under Regular Expressions on 2/16/2011 | Points: 10 | Views : 15598 | Status : [Member] | Replies : 3
how to expand Only root Node of the Telerik RadTreeview.
after populate the data form table in to RadTreeView.
i need a out put like this
|--BaseNode
+ChildNode1
+ChildNode2
+ChildNode3

Only Base Root Node[BaseNode] is Expanded other all the child[+ChildNode1
+ChildNode2,+ChildNode3] nodes are Collapsed.
can any one please help me please.




Responses

Posted by: Prabhakar on: 2/16/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down

Hi Johnseelan

Check This Link . . it's a help full for you . .
http://demos.telerik.com/aspnet-ajax/treeview/examples/overview/defaultcs.aspx

Best Regard's
Prabhakar

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Johnseelan on: 2/17/2011 [Member] Starter | Points: 25

Up
0
Down
Finally i got the answer,

this.RadTreeview.Nodes[0].Expanded = true;

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/17/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Johnseelan,

Thats good... Please mark it as answer and close the thread!!!

Thanks
Karthik
www.f5Debug.net

Johnseelan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response