onGridResizeStart
info
This functionality is available in the PRO edition only.
Description
Fires before the user starts to drag the grid's border to resize the grid
onGridResizeStart: (old_width: number) => boolean;
Parameters
old_width- (required) number - the initial grid's width
Returns
result- (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)
Example
// return false to discard the resize action
gantt.attachEvent("onGridResizeStart", function(old_width){
gantt.message("Start grid resizing");
return true;
});
Related samples
Details
The event is blockable. Returning false won't allow grid resizing.