Skip to main content

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;
});

Details​

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

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.