fires before dragging of a column has started
data | object | data object |
e | Event | a native event object |
boolean | false - to prevent dragging a column, otherwise true |
Available only in PRO Edition
grid.events.on("BeforeColumnDrag", function(data, events){
// your logic here
return false;
});
This functionality requires PRO version of the dhtmlxGrid (or DHTMLX suite) package.
The data object contains the following parameters:
start | (string) the id of a column, from which the dragging process has started |
source | (string[]) an array with ids of dragged columns |
target | (string) the id of a potential target column |