PDA

View Full Version : Drag&Drop (GridView) - Cancel dropping



jarobi
21 Mar 2012, 12:51 AM
How can i cancel a drop process?

something like this

beforedrop: function(node, data, overModel, dropPosition, dropFunction){
if(data....= = false){
//Cancel drop
}


}

Im trying ti unregister the dropzone:
this.getPlugin('ddplugin').dropZone.unreg();

or setting the enableDrop-Config as false

Nothing works


Using Ext Js 4.0.7

vietits
21 Mar 2012, 1:15 AM
beforedrop: function(node, data, overModel, dropPosition, dropFunction){
if(data....== false){
return false; //Cancel drop
}