onColumnResizeStart
info
This functionality is available in the PRO edition only.
Description
Fires before the user starts to drag the column's border to resize the column
onColumnResizeStart: (index: number, column: GridColumn) => boolean;
Parameters
index- (required) number - the column indexcolumn- (required) GridColumn - the column object
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("onColumnResizeStart", function(index, column){
gantt.message("Start resizing " + gantt.locale.labels["column_"+column.name]);
return true;
});
Related samples
Details
The event is blockable. Returning false won't allow column resizing.