开发者

What event is fired when node is invalid in treepanel in extjs

开发者 https://www.devze.com 2023-01-18 12:56 出处:网络
When a node is dropped it goes to beforenodedrop event in TreePanel But what happens when node is invalid ? i开发者_StackOverflow中文版t doesn\'t drop and so beforenodedrop event is not notified

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

But what happens when node is invalid ? i开发者_StackOverflow中文版t 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

0

精彩评论

暂无评论...
验证码 换一张
取 消