I’m trying to make dhtmlXgrid behave differently depending upon the target grid for drag n drop functionality.
I have three grids A, B, C instantiated.
For drag from A to B …it should enable mercy drop and from A to C it should disable mercy drop.
Thanks,
Ikram Shah
you can use setDragInHandler for such purpose
gridB.setDragInHandler(function(a,b,src,trg){
if (src==gridA) gridA.enableMercyDrag(true);
return true;
});
gridC.setDragInHandler(function(a,b,src,trg){
if (src==gridA) gridA.enableMercyDrag(false);
return true;
});