Skip to main content

beforeRowResize

fires before the height of a row is changed

beforeRowResize: (row: object, event: Event, currentHeight: number) => boolean | void;

Parameters:

The callback of the event is called with the following parameters:

  • row: object - an object with a row configuration
  • event: 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

treegrid.events.on("beforeRowResize", (row, event, currentHeight) => {
console.log("Current row height:", currentHeight);
return true;
});

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