Custom row-header columns API (pinned, template-driven, non-data)
A generic API for adding custom non-data columns to the row-header area. These columns are always pinned at the left (or the start, in RTL), are excluded from sorting, filtering, export and column menus by default, and render through header and cell templates. Built-in row numbering (GRID-A19-F07) and the selection checkbox column (GRID-A11-F04) are re-expressed as instances of this API, so ordering between built-in…
Planned. This page shows the specification from issue #211. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with 1,000 rows and 15 data columns, wide enough to scroll horizontally. Row headers show, in order: a custom 'status' icon column, the built-in checkbox column, and the built-in row numbers.
Expected behavior
Adding the actions column inserts a pinned column with a menu button at the chosen order, without re-rendering the data columns. Horizontal scrolling never moves row-header columns. Sorting, filtering and CSV export ignore them. Removing the column restores the previous layout, and the RTL toggle moves the row-header area to the right edge.
Planned API surface
gridOptions.rowHeaderColumns: RowHeaderColumnDef[]RowHeaderColumnDef { id, width, headerTemplate?, cellTemplate, order?, resizable?=false, exportable?=false, ariaLabel }api.core.addRowHeaderColumn(def, { order?: number }): voidapi.core.removeRowHeaderColumn(id): voidapi.core.getRowHeaderColumns(): RowHeaderColumnDef[]Event: rowHeaderColumnsChangedAcceptance criteria
- Row-header columns stay fixed during horizontal scroll and stay vertically in sync with data rows, including with virtualization (pending)
- Templates receive { row, rowIndex, api } and can render interactive content (pending)
- Row-header columns are excluded from sort, filter, column menu, column chooser and export unless opted in (pending)
- Built-in row numbers and checkbox column can be reordered relative to custom columns via order (pending)
- add/remove at runtime fires rowHeaderColumnsChanged and does not lose selection or scroll position (pending)
- Works with grouping and tree rows: template gets the row type so it can render or skip group rows (pending)