Check documentation for the latest version 6.0 of dhtmlxSuite onDrag DHTMLX Docs

onDrag

fires when an item is dragged to another target and the mouse is released, the event can be blocked

boolean onDrag(string|number sId,string|number tId,object sObj,object tObj,number sInd,number tInd){ ... };

Parameters

sIdstring|numberthe id of the source item
tIdstring|numberthe id of the target item
sObjobjectthe source grid object
tObjobjectthe target grid object
sIndnumberthe index of the column from which drag has started
tIndnumberthe index of the column in which drop occurs

Returns

booleantrue - confirms drag-and-drop, false - denies drag-and-drop

Available only in PRO Edition

Example

grid.attachEvent("onDrag", function(sId,tId,sObj,tObj,sInd,tInd){
    // your code here
});

Details

to get more info, read the article Drag-and-Drop Support

Back to top