Skip to main content

beforeRowResize

fires before the height of a row is changed

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

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

treegrid.events.on("beforeRowResize", function(row, events, 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