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

Expand Parent Node while using Load On Demand

2 Answers 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sekhar
Top achievements
Rank 1
Sekhar asked on 26 Dec 2013, 07:48 PM
Hi,

I am using the client side approach for load on demand. When my page first loads its shows the Root node A and when i click on node A it displays all the child nodes b,c,d and E which in turn have child nodes.

What i want to do is when the page is loaded for the first time, the parent node A should be displayed in expanded mode., basically i want to the achieve the Client click event  programatically. How can i achieve this.


Thank you
-Sekhar

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Dec 2013, 05:43 AM
Hi Sekhar,

Due to some timing issues in case of ServerSideCallBack ExpandeMode for the node does not expand after the postback although its child nodes are loaded. Please have a look into this help documentation.

Thanks,
Shinu.
 
0
Sekhar
Top achievements
Rank 1
answered on 27 Dec 2013, 01:07 PM
Thank you for the info. However i had a work around for this, wherein i expanded the root node after the page loads on the client side using javascript as shown below.

function pageLoad() {
                var tree = $find("<%= RadTreeView1.ClientID %>");
                tree.get_nodes().getNode(0).expand();
}

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