2

I've got a grid with a filter applied to it.

I have a button which selects all of the rows in the grid and performs some action. I want to retrieve the filtered rows in this method. How is this possible?

I've come across this previous question however this requires using a filterChanged event to maintain a copy of the filtered rows. I do not want to do this, I would prefer to just query the grid directly for the filtered rows.

Imran
  • 385
  • 2
  • 4
  • 14

1 Answers1

3
gridApi.getModel();

This will Return the row model inside the table. From here you can see the original rows, rows after the filter has been applied, rows after aggregation have been applied, and the final set of 'to be displayed' rows.

behruz
  • 570
  • 4
  • 13