View Full Version : Capture the event of the end of tree expand all

22 Apr 2009, 7:42 PM
How can we capture the event of tree finishing the expand all activity. Please see the following code?

var tree = new Ext.tree.TreePanel

var urlLocation ='./ajaxfavorite.htm?favorite_id='+r.data.group + '&user_group='+org_id;

var node = tree.getRootNode();


23 Apr 2009, 8:39 AM
there is no 'expandall' event.

If your tree leafs are all loading asynchronously, don't know that you can track all the loads.

23 Apr 2009, 8:39 AM
Eh, maybe each leaf can bubble up a expand event once it's done loading, but it could be messy me thinks.

23 Apr 2009, 10:13 AM
You are right, we may not track all the loads.

I finally use node load event since each node in my tree only has one child.