0
votes

After adding or deleting the row in ag grid. Column filter values are not reflecting accordingly.

Let say,

Default GRID rows are

a

b

While deleting the row b using reload() method, grid is updated as below

a

But column filter still shows b

a

b

How to refresh the column filter as well.

Any expert advise please?

1

1 Answers

0
votes

You should reset filter values for the specific column filter after the update of the grid:

params.api.getFilterInstance(params.colDef.colId).resetFilterValues()

as documented:

resetFilterValues(): Useful if you want to rebuild the filter options based on the underlying data