beforeColumnDrag

fires before dragging of a column has started

boolean beforeColumnDrag(object data,Event e){ ... };

Parameters

dataobjectdata object
eEventa native event object

Returns

booleanfalse - to prevent dragging a column, otherwise true

Available only in PRO Edition

Example

grid.events.on("BeforeColumnDrag", function(data, events){
    // your logic here
    return false;
});

Related samples

Details

This functionality requires PRO version of the dhtmlxGrid (or DHTMLX suite) package.

The data object contains the following parameters:

See also
Change log
  • added in v6.5
  • Before v7.0, the event took one parameter - the column id.
  • Starting from v7.0, the event takes two parameters: data and e.
Back to top