Overview
Listen to column events using GridOptions callbacks:Column Visibility
Fired when a column’s visibility is changed.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnsvisible:trueif column was set to visible,falseif hidden,undefinedif mixedsource: String describing where the event is coming from
Column Sizing
Fired when a column is resized.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnsfinished: Set to true for last event in a sequence of resize eventsflexColumns: Any columns resized due to flexsource: String describing where the event is coming from
Column Movement
Fired when a column is moved (reordered).Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnstoIndex: The position the column was moved tofinished:truewhen the column has finished movingsource: String describing where the event is coming from
Column Pinning
Fired when a column is pinned or unpinned.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnspinned: Either'left','right', ornull(if not pinned)source: String describing where the event is coming from
Column Groups
Fired when a column group is opened or closed.Event Properties:
columnGroup: The column group that was opened/closedcolumnGroups: All column groups affected
Fired when all column groups are expanded or collapsed.Event Properties:
source: String describing where the event is coming from
Column State
Fired when the displayed columns change (e.g., due to column grouping, pivoting, or visibility).Event Properties:
source: String describing where the event is coming from
Fired when the columns in the viewport change due to horizontal scrolling (column virtualization).Event Properties:
afterScroll: True if triggered by scrolling
Fired when the grid columns are changed (e.g., after pivoting).
Fired when new columns are loaded via
api.setColumnDefs().Event Properties:source: String describing where the event is coming from
Column Header Events
Fired when a column header (or column group header) is clicked.Event Properties:
column: Column or column-group related to the header that triggered the event
Fired when a column header (or column group header) is right-clicked.Event Properties:
column: Column or column-group related to the header that triggered the event
Fired when the mouse enters a column header.Event Properties:
column: Column or column-group related to the header that triggered the event
Fired when the mouse leaves a column header.Event Properties:
column: Column or column-group related to the header that triggered the event
Pivot & Aggregation
Fired when pivot mode is enabled or disabled.Module:
PivotModuleFired when the pivot columns are changed.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnssource: String describing where the event is coming from
PivotModuleFired when the row group columns are changed.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnssource: String describing where the event is coming from
RowGroupingModuleFired when the value columns (used for aggregation) are changed.Event Properties:
column: The impacted column (ornullif multiple)columns: List of all impacted columnssource: String describing where the event is coming from
RowGroupingModule / PivotModuleMenu Events
Fired when the column menu is opened or closed.Event Properties:
visible: True if now visible; false if now hiddenswitchingTab: True if switching between tabs (legacy menu only)key: Currently displayed menu/tabcolumn: Column the menu is opened for (ornull)columnGroup: Column group the menu is opened for (if applicable)
Related APIs
Grid Events
Grid-level events
Row Events
Row interaction events
Column API
Programmatic column control