Check documentation for the latest version of dhtmlxSuite onBeforeDrag DHTMLX Docs

onBeforeDrag

fires before drag operation starts, cancelable

boolean onBeforeDrag(string|number id);
idstring|numberthe id of the dragged item
booleantrue to allow operation

Example

myTreeView.attachEvent("onBeforeDrag", function(id){
    //your code here
    return true;
});

Details

the event can be blocked:return false to block the row's dragging

Back to top