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 TableColumns property)

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-SelectionColumn in TableColumns property 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
Fork
  • This example has a Pinned Layout where we pin the Selection Column and the Name Column
  • In order to do this we have to list the Selection Column in the Layout's TableColumns and ColumnPinning properties
  • Note: We added a Positioned Layout which attempts to position the selection column differently, but this is ignored and it still renders as the first column