fires before dragging of a column has started

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


dataobjectdata object
eEventa native event object


booleanfalse - to prevent dragging a column, otherwise true

Available only in PRO Edition

Example"BeforeColumnDrag", function(data, events){
    // your logic here
    return false;

Related samples


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