Skip to main content

beforeRowResize

fires before the height of a row is changed

beforeRowResize: (row: IRow, events: Event, currentHeight: number) => boolean;

Parameters:

  • row: object - an object with a row configuration
  • events: Event - a native event object
  • currentHeight: number - the current height of the row

Returns:

Return false to block resizing of a row; otherwise, true.

Example

grid.events.on("beforeRowResize", function(row, events, currentHeight) {
console.log("Current row height:", currentHeight);
return true;
});
Pro version only

This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.

To be able to change the height of the row, you should specify the autoHeight:true and editable:true options in the configuration of Grid.

Change log:

added in v7.1