What event is fired when node is invalid in treepanel in extjs
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
精彩评论