I would like to use a checkbox in the header of ag-grid
for Select All option. The row model type I'm using is infinite. I guess this model doesn't support headerCheckboxSelection=true
.
How else I can use a checkbox inside the header cell?
I will be making a service call on click of this checkbox for further processing.
This is how i am configuring the table:
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
};