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

how to expand the Node by code

3 Answers 97 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
fan
Top achievements
Rank 1
fan asked on 15 Jan 2009, 04:05 AM
I want to  expand the node by Code,
In Microsoft's WebControl, I expand the node is example.

node.expand();

 in the telterik, i am not finded the method,

I set the ExpandMode of property is TreeNodeExpandMode.ServerSide and expand the node after loading.example

 rootNode.ExpandMode = TreeNodeExpandMode.ServerSide; ;

trvwNewTree.Nodes.Add(rootNode);

            //rootNode.ExpandChildNodes();

  rootNode.Expanded = true;

I also used the note code, but i fonded is not useful.

other:
I found the + is to - while using exmaple front code.

After loading the rootNode,the child is empty. I want to use the "  rootNode.Expanded = true;" to fire the NodeExpand event, In this event is the code to load the child node.

thank you

3 Answers, 1 is accepted

Sort by
0
fan
Top achievements
Rank 1
answered on 15 Jan 2009, 04:17 AM
sigh
0
Accepted
Shinu
Top achievements
Rank 2
answered on 15 Jan 2009, 06:23 AM
Hi Fan,

I hope the documentation links given below will help you in expanding the nodes. The second link describes how to expand the parent node of particular node in a RadTreeView through JavaScript.
Expanding Nodes
Expand parent Nodes




Thanks,
Shinu.
0
fan
Top achievements
Rank 1
answered on 15 Jan 2009, 09:58 AM

you are right

thank you

Tags
TreeView
Asked by
fan
Top achievements
Rank 1
Answers by
fan
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or