onColumnResizeEnd

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

boolean onColumnResizeEnd(number index,GridColumn column,number new_width);
indexnumberthe column index
columnGridColumnthe column object
new_widthnumberthe new column'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("onColumnResizeEnd", function(index, column, new_width){
    gantt.message.hide(message);
    message = null;
    gantt.message(`Column <b>${gantt.locale.labels["column_"+column.name]}
    </b> is now ${new_width}px width`);
    return true;
});

Related samples

Details

This functionality is available in the PRO edition only.

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

See also
Back to top