onBeforeColumnDrag

fires the moment you start dragging the column from its source position

void onBeforeColumnDrag(string sourceId,Event object event);
sourceIdstringthe source column id
eventEvent objectthe native event object

Example

$$("datatable1").attachEvent("onBeforeColumnDrag", function(sourceId, event){
    // some code
    return true;
});

Details

The event is blockable. Returning false will prevent column dragging.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 library and page of html5 datatable product.