문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top