Is there a way to add a checkbox in the header of ag-grid
for selecting all options when using an infinite row model? It seems that the headerCheckboxSelection=true
feature is not supported in this model.
Are there any alternative methods to include a checkbox inside the header cell?
I plan to trigger a service call upon clicking this checkbox for additional processing.
Below is my current table configuration:
this.columnDefs = [
{
headerCheckboxSelection:true
checkboxSelection: true,
width: 40,
},
{
headerName: "Date/Time",
field: "createdDate",
width: 230
},
{headerName: 'File Name', field: 'fileName', width: 240},
{headerName: 'Count', field: 'count', width: 100}
];
this.gridOptions = {
rowSelection: 'multiple',
cacheBlockSize: 30,
rowModelType: 'infinite',
paginationAutoPageSize: true,
suppressRowClickSelection: true
};