fires after the user finished dragging the grid's border to resize the grid

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

Available only in PRO Edition


// return false to discard the resize action
gantt.attachEvent("onGridResizeEnd", function(old_width, new_width){
    message = null;
    gantt.message(`Grid is now <b>${new_width}</b>px width`);
    return true;

Related samples


This functionality is available in the PRO edition only.

The event is blockable. Returning false will cancel grid resizing.

See also
Back to top