PDA

View Full Version : event after tree node expanded



ju187
19 Sep 2012, 3:18 PM
Have a tree loads dynamically each time user expands a node. After the node is expanded some task needs to be done. However, I could not find the event that will fire after the tree finish rendering the new nodes. afterrender dose not fire on these dynamic nodes and itemexpand fires before the nodes are ready. Does anyone know an event that is fired after the nodes are ready? thanks.

vietits
19 Sep 2012, 5:33 PM
You can listen to 'itemexpand' event. See more information here: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tree.Panel-event-itemexpand

ju187
19 Sep 2012, 6:05 PM
thanks for your quick reply. However, the itemexpand event is fired when the item is expanding, not when the child nodes are render. The results is that the child nodes are not ready. What I need is something close to afterrender but fired after child node is rendered.

ATN
20 Sep 2012, 3:59 AM
I have the same request.

redraid
20 Sep 2012, 4:49 AM
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tree.View-event-afteritemexpand

ju187
20 Sep 2012, 7:23 AM
Unfortunately this is new in 4.1 and I am using 4.07 now

redraid
21 Sep 2012, 1:36 AM
Try to upgrade to 4.1.x