View Full Version : movenode event on tree panel never fires

1 Jul 2010, 6:54 AM

I wrote a listener for "movenode" event in a tree panel, But found it never fires. I searched the code to find that it is only declared in treepanel but never fired. I treid to find where it is being fired so that i can override it. Finally I discovered that "nodedrop" event is being fired in two different places in Ext.tree.TreeDropZone class but passing different number of parameters to the handler in each place. One is being called in methods "completeDrop" & other in "afterNodeMoved" of which afterNodeMoved is never called(:|.

I am not confident its a bug so as I am posting here. Some one please confirm

2 Jul 2010, 1:17 AM
anybody please help, I am stuck here... tell what can u do to make "movenode" event of the treepanel get fired

2 Jul 2010, 1:23 AM
Are you sure? The call to insertBefore or appendChild in completeDrop should fire the 'move' event on the node (which is proxied to the tree as 'movenode').

2 Jul 2010, 1:31 AM
Okay! I understood, this is the code u are talking around right?

// private
proxyNodeEvent : function(ename, a1, a2, a3, a4, a5, a6){
if(ename == 'collapse' || ename == 'expand' || ename == 'beforecollapse' || ename == 'beforeexpand' || ename == 'move' || ename == 'beforemove'){
ename = ename+'node';
// args inline for performance while bubbling events
return this.fireEvent(ename, a1, a2, a3, a4, a5, a6);

But for some reason its not firing, I will debug and getback to you.

Thanks for the response