Naveen Kumar
Naveen Kumar

Reputation: 2990

How to disable advance filtering in ag grid

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

Answers (1)

Bilel-Zheni
Bilel-Zheni

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

Related Questions