onGridResizeEnd

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

boolean onGridResizeEnd(number old_width,number new_width){ ... };

Parameters

old_widthnumberthe initial grid's width
new_widthnumberthe new grid's width

Returns

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("onGridResizeEnd", function(old_width, new_width){
    gantt.message.hide(message);
    message = null;
    gantt.message("Grid is now <b>" + new_width + "</b>px width" );
    return true;
});

Related samples

Details

This functionality is available in the PRO edition only.

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

See also
Back to top