by Gabi Boros » Fri Apr 29, 2022 11:09 am
'headerCheckboxSelection is not supported for Server Side Row Model' because in this mode, that is used in Data grid,
not all rows are loaded/displayed in the component at once, they are loaded in 'chunks' of rows, and so, a 'select all' in the header make no sense - as not all rows are displayed.
The Data grid (ag grid) does not directly supports header click events, as they are 'reserved' to sorting - so if you really want to add some code for header clicks, you need to use the onSort callback.
But, if you want to have a 'select all' in the header, I suspect you have a grid where you want to load a 'limited' number of rows, as you want to displayed them all at once, so maybe a better fit would be the Power grid, that uses a Client Side Row Model, and so it also supports 'headerCheckboxSelection'
Gabi Boros
Servoy