Question

When a node is dropped it goes to beforenodedrop event in TreePanel

But what happens when node is invalid ? it doesn't drop and so beforenodedrop event is not notified

What event is that????? Can somebody please tell me?????

Thanks alot in advance Regards

Was it helpful?

Solution

To do some processing on a tree node after an invalide drop:

There is a method in Ext.tree.TreeDragZone, override that method :

Ext.override(Ext.tree.TreeDragZone, {

        afterRepair:function(){

                            // Code to be processed on node after an invalid drop
            this.dragging = false;
        },

        getRepairXY : function(e){
            return false;
        }    
});

Hope that helps somebody.

Regards

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top