Skip to main content

beforeColumnHide

fires before a column is hidden

beforeColumnHide: (column: object) => boolean | void;

Parameters:

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

  • column: object - an object with a column configuration

Returns:

Return false to prevent a column from being hidden; otherwise, true.

Example

grid.events.on("beforeColumnHide", (column) => {
// your logic here
return false;
});

Related sample: Grid. Events

Change log:

added in v7.0