Grid: Enable/Disable drag mode dynamically

In the past DHX offered a handy solution to enable/disable dragMode in a Grid (e.g., grid.enableDragAndDrop(false);). But now I an not seeing any way to do this. What am I missing? In essence, on an ‘AfterAdd’ event in my Target Grid, I would like to be able to disable dragMode in the Source. Seems like a simple request … any ideas? Thank you.

Hello.

There is no possibility to disable the drag’n’drop in the grid dynamically, but you may block the dragging using the beforeRowDrag event:

Like:

grid.events.on("BeforeRowDrag", function(data, events){
    return false; // false - block the dragging, true - allow the dragging
});