Reputation: 13367
I have tried to use ag grid for angular 2 and faced with the following behavior:
When I'm trying to type anything in column filter, grid is going to reload and reset filter as well. It happens not only if I type something for filtration but even if I'm trying to change type of the filter.
Anybody had similar issue?
Upvotes: 5
Views: 9593
Reputation: 785
I resolved this issue by adding property : newRowsAction: 'keep'
columnDefinition = {
headerName: 'Athlete',
field: 'athlete'
// set the column to use text filter
filter: 'text',
// pass in additional parameters to the text filter
filterParams: {apply: true, newRowsAction: 'keep'}
}
From the ag-grid docs : https://www.ag-grid.com/javascript-grid-filtering/#gsc.tab=0
Upvotes: 5