Results 1 to 4 of 4

Thread: movenode event on tree panel never fires

  1. #1
    Sencha User
    Join Date
    Nov 2009
    Location
    hyderabad
    Posts
    9

    Default movenode event on tree panel never fires

    Hi

    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. #2
    Sencha User
    Join Date
    Nov 2009
    Location
    hyderabad
    Posts
    9

    Default

    anybody please help, I am stuck here... tell what can u do to make "movenode" event of the treepanel get fired

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    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').

  4. #4
    Sencha User
    Join Date
    Nov 2009
    Location
    hyderabad
    Posts
    9

    Default

    Okay! I understood, this is the code u are talking around right?

    Code:
    // 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

Similar Threads

  1. Replies: 6
    Last Post: 10 Nov 2016, 11:15 AM
  2. Panel initially collapsed fires unwanted event
    By mmasters in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 15 Apr 2009, 6:32 PM
  3. Problem with movenode (Ext.tree)
    By klauskomero in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Apr 2008, 7:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •