1. #1
    Sencha User
    Join Date
    May 2008
    Posts
    13
    Vote Rating
    0
    davidTim24 is on a distinguished road

      0  

    Question TreePanel nodedragout even ?

    TreePanel nodedragout even ?


    Hi All,

    I need to intercept when a node is dragged out when using the TreePanel...

    The TreePanel has only the nodedragover and nodedrop, but an missing the third event.

    Can someone point me to a way to do this ?

    Many thanks!

  2. #2
    Sencha User bruijn88's Avatar
    Join Date
    May 2008
    Posts
    66
    Vote Rating
    2
    bruijn88 is on a distinguished road

      0  

    Default


    davidTim24,

    I think what you're looking for is:
    PHP Code:

    var tree = new Ext.tree.TreePanel({
    //  ... (your config)
        
    dragConfig: {
            
    beforeDragOut: function (targetevtid) {
                
    // your stuff
            
    },
            
    afterDragOut: function (targetevtid) {
                
    // your stuff
            
    }
        }
    }); 
    Also see:
    http://dev.sencha.com/deploy/dev/doc...e.TreeDragZone > Methods

    Zogs.

  3. #3
    Sencha User
    Join Date
    May 2008
    Posts
    13
    Vote Rating
    0
    davidTim24 is on a distinguished road

      0  

    Default


    Quote Originally Posted by bruijn88 View Post
    davidTim24,

    I think what you're looking for is:
    PHP Code:
     
    var tree = new Ext.tree.TreePanel({
    //  ... (your config)
        
    dragConfig: {
            
    beforeDragOut: function (targetevtid) {
                
    // your stuff
            
    },
            
    afterDragOut: function (targetevtid) {
                
    // your stuff
            
    }
        }
    }); 
    Also see:
    http://dev.sencha.com/deploy/dev/doc...e.TreeDragZone > Methods

    Zogs.
    Hi bruijn88. Thanks for your reply.
    What I search is a method to intercept the drag out on a node of the treepanel and no for the entire tree.

  4. #4
    Sencha User bruijn88's Avatar
    Join Date
    May 2008
    Posts
    66
    Vote Rating
    2
    bruijn88 is on a distinguished road

      0  

    Default


    PHP Code:
    tree.on('startdrag', function (treenodeevt) {
        
    // stuff
    }); 
    ?

    Zogs.

Similar Threads

  1. treePanel Plugin: Ext.ux.tree.TreePanel.CopyDropNode
    By willf1976 in forum Ext 3.x: User Extensions and Plugins
    Replies: 14
    Last Post: 18 Jan 2011, 12:12 PM
  2. treePanel Plugin: Ext.ux.tree.TreePanel.AllowExpandEmptyBranch
    By willf1976 in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 3 Sep 2009, 5:49 PM
  3. treePanel plugin: Ext.ux.tree.TreePanel.NodeManagement
    By willf1976 in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 13 Aug 2009, 4:07 PM
  4. TreePanel using xtype: 'treepanel' icons will not display
    By jbd3rd in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 27 May 2009, 10:24 PM
  5. Replies: 4
    Last Post: 30 Oct 2007, 12:58 AM

Thread Participants: 1

Tags for this Thread