I am using AG Grid Angular and would like to use custom filters in combination with the infinite row model.
The documentation of the custom filters does not mention the infinite row model, so it is not clear whether the two are compatible or not. I have implemented the "simple filter" example from the documentation and attached it to my grid, and here is what I observe:
- The custom filter is properly displayed and clicking the radio button refreshes the grid.
- However, the data is not modified and the
doesFilterPass()method of the custom filter does not seem to ever be called (which would not make sense in the infinite row model). - My row model's datasource's
getRows()method is called, butparams.filterModelremains empty.
It seems to me that this almost works, except that the custom filter needs to either:
- tell the grid to add a filter model that the datasource can process
- or tell the datasource directly to apply a filter (this seems possible, because the filter can access the datasource via
params.rowModel.datasource, but this seems like a hack)
Is there a proper way to do that, which I missed?