Skip to main content

beforeSelect

fires before selecting a cell

beforeSelect: (row: IRow, col: ICol) => boolean | void;

Parameters:

  • row: object - the config of a row
  • col: object - the config of a column

Returns:

Return false to prevent selecting of a cell; otherwise, true.

Example

treegrid.selection.events.on("BeforeSelect", function(row, col){    console.log("beforeSelect", row, col);     return false;});

It is also possible to use the simplified version of the event:

treegrid.events.on("BeforeSelect", function(row, col){    console.log("beforeSelect", row, col);     return false;});

Change log:

added in v7.0