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

onBeforeDrag

fires before drag operation starts, cancelable

boolean onBeforeDrag(string|number id){ ... };

Parameters

idstring|numberthe id of the dragged item

Returns

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