PDA

View Full Version : [OPEN] [OPEN][EXTJSIV-2253]TreePanel itemexpand same as beforeitemexpand.



wzl002
1 Jun 2011, 6:15 PM
The 'itemexpand' event "Fires when a node is expanded", but I find that the childNodes will show after the itemexpand function return, which is just like the 'beforeitemexpand'. Should not the childNodes show before the itemexpan function call?

dongryphon
1 Jun 2011, 9:25 PM
I've logged a bug for this. Thanks for the report!

lemlich
22 Jun 2011, 6:43 PM
If there was a way to vote on this, I'd vote. It's blocking me.

dongryphon
22 Jun 2011, 7:55 PM
Would adding a 'delay:1' or 'buffer:1' to your listen help you at present?



tree.on({
expand: this.onExpand,
scope: this,
delay: 1
});

lemlich
22 Jun 2011, 11:53 PM
Thanks, Don. I'll give it a try :)

lemlich
23 Jun 2011, 11:59 AM
I did have to use the "itemexpand" event insteand of "expand", but
the delay worked.

Thanks again.

dongryphon
23 Jun 2011, 12:45 PM
Quite true... sorry for the confusion but I'm glad to hear you are on your way again! :)