Hello everybody,

I'm currently working with ExtJs 4 TreeView and DragNDrop, and I can't find an easy way to allow drag only for the leaves of my tree (ie. I don't want to be allowed to drag folders). I looked for events such as 'beforenodedrag' or any obvious configuration of the DnD plugin but it doesn't seem to exist.

Did I miss something ?

My code is the following :

Code:
Ext.define('PlayExt.view.tree.SerieTreeOther' ,{
    extend: 'Ext.tree.Panel',
    
    alias: 'widget.serieTreeOther',


    store: Ext.create('Ext.data.TreeStore', {
	    autoLoad: true, 
	    root: {
	        expanded: true,
        	text: "Tout ce que je n'ai pas"
	    },
	    
	    proxy: {
	    	type: 'ajax',
	        url : '/treeNotUser'
	    },
	    
	    sorters: [
	        {
	            property : 'text',
	            direction: 'ASC'
	        }
	    ]
	}),
	
	viewConfig: {
        plugins: {
            ptype: 'treeviewdragdrop',
            dragGroup: 'otherBooks',
            dropGroup: 'collectionBooks'
        }
    },
    
    rootVisible: true
});
Regards