AG Grid Checkbox Selection
Summary
- AdapTable supports the Checkbox Selection Column provided by AG Grid
- It allows for this column to be pinned (by referencing it directly in the Layout)
AG Grid provides a selection column which renders a checkbox that selects the row.
AdapTable supports this Column where necessary, e.g. allowing it to be pinned if required.
Note
- AG Grid gives the selection column an autogenerated Id of
ag-Grid-SelectionColumn - Use this Id in order to access the Column - e.g. for pinning (but make sure to include it in
TableColumnsproperty)
AG Grid will always place the selection column at the left side of the Grid before all other columns.
Caution
- The position of the
ag-Grid-SelectionColumninTableColumnsproperty in the Layout will be ignored by AG Grid - The selection column will always be the first to render irrespective of its position
Checkbox Selection
- This example has a
Pinned Layoutwhere we pin the Selection Column and theNameColumn - In order to do this we have to list the Selection Column in the Layout's
TableColumnsandColumnPinningproperties - Note: We added a
Positioned Layoutwhich attempts to position the selection column differently, but this is ignored and it still renders as the first column