0
votes

With ag-grid 23v. I'm trying to add a header checkbox to the checkbox column (just checkboxes). I set the coldef to checkboxselection= true and header checkbox selection to true. But on select all only the rows in the current page gets selected . Is there a event fired on selectall which i could use to set all the rows in all the pages as selected. I'm using ag-grid : 23v on angualr: 1.5

1

1 Answers

0
votes

Even in pagination mode, the header checkbox selects all rows by default.

You can check this plunkr

It prints the no. of rows selected in console on row selection.

  onSelectionChanged(params){
  console.log("No of rows selected :" + params.api.getSelectedRows().length);
}

You will notice that header checkbox selection will select all rows across all pages