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

[Solved] client-side notification of node.expand()

3 Answers 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 02 Dec 2009, 10:14 PM
I use a radTree whose nodes have ExpandMode set to ServerSideCallBack.

At the client-side, I am able to fire _node.expand(); method to actually expand a given treeNode, but I am struggling to find a way for the notification of when the expand operation gets completed. That will help me in accessing the child nodes of a mode in Javascript.

Please let me know if there is any way.

Thanks,
Saurabh.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 03 Dec 2009, 08:31 PM
I think the event you are looking for is the OnClientNodeExpanding client-side event of the TreeView:

function OnClientNodeExpanding(sender, args) 
    var node = args.get_node(); 
    alert("Node " + node.get_text()  + " is expanding!"); 

0
saurabh
Top achievements
Rank 1
answered on 03 Dec 2009, 08:35 PM
Calling the client-side expand() orset_expanded(true) method does not fireOnClientNodeExpanding and OnClientNodeExpandedclient-side events.
I am looking for some notification on the client side when the expand() operation finishes.
0
Yana
Telerik team
answered on 04 Dec 2009, 03:39 PM
Hello Saurabh,

Please use OnClientNodePopulated event, it fires when the nodes are loaded on demand.

Regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
saurabh
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
saurabh
Top achievements
Rank 1
Yana
Telerik team
Share this question
or