Reputation: 2990
In v20 of Ag-grid(Angular 7), how can we disable advance filtering(like And and OR filtering)?
I tried using:
filterParams: {
suppressAndOrCondition: true
}
But nothing happened.
Upvotes: 0
Views: 791
Reputation: 1312
you can achieve this through default column config :
component.ts
import { GridOptions, ColDef } from 'ag-grid-community';
...
gridOptions : GridOptions = {} ;
constructor(){
this.gridOptions.defaultColDef = { filterParams: {
suppressAndOrCondition: true }} ;
}
...
html
<ag-grid-angular #agGrid [gridOptions]="gridOptions"></ag-grid-angular>
Upvotes: 1