Hi,
We are not able to reorder items in a grid when there is a onBeforeDrag event.
Is there any event to identify dragging and dropping within a dhtmlx grid and between 2 dhtmlx grid. We have 2 grids in a screen, Dragging an item from Grid B to Grid A should happen only in certain conditions. We have written the condition in Grid B’s “onBeforeDrag” method. When that certain condition is true we are not able to reorder Grid B. We tried placing this check in the Grid A’s drop event as well but that did not work out. Could you please help to resolve this issue. We want 2 things to happen.
1. We should be able to drop things from Grid B to Grid A except in 1 condition.
2. We should be able to reorder Grid B by dragging and dropping items in the grid.
Below is the event we have used to check for a condition while dragging and dropping between grids.
function attachEvent() {
mygridCurrent.attachEvent(“onBeforeDrag”, function (rId) {
var colId = mygridCurrent.cells(rId, 12).getValue();
if (colId == “true”) {
$("#returnMessage").html(“Venue cannot be removed from the event. Seats have been assigned to attendees.” + “
”);
$("#grayOut").css(“visibility”, “visible”);
$("#returnMessage").css(“visibility”, “visible”);
return false;
}
else {
return true;
}
});
}