onGridResizeStart

fires before the user starts to drag the grid's border to resize the grid

boolean onGridResizeStart(number old_width);
old_widthnumberthe initial grid's width
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Available only in PRO Edition

Example

// return false to discard the resize action
gantt.attachEvent("onGridResizeStart", function(old_width){
    gantt.message("Start grid resizing");
    return true;
});

Related samples

Details

This functionality is available in the PRO edition only.

The event is blockable. Returning false won't allow grid resizing.

See also
Back to top