This is a migrated thread and some comments may be shown as answers.

Default filter menu logic

1 Answer 424 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 15 Jul 2019, 01:49 PM
Is there a way to default the built in filter menu logic to use "OR" as opposed to "AND"? I know that you can remove the secondary filter option using the [extra] attribute, but what I'm looking for is simply a way to make the default logic selection "OR". 

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 17 Jul 2019, 07:36 AM
Hello Tyler,

You can further configure the built-in Grid filtering components for the basic data types by providing the default logic via the logicChange method:

<ng-template kendoGridFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
      <kendo-grid-numeric-filter-menu #numFilter
          [column]="column"
          [filter]="filter"
          [filterService]="filterService"
          >
      </kendo-grid-numeric-filter-menu>
      {{numFilter.logicChange('or')}}
      </ng-template>

https://stackblitz.com/edit/angular-b1tjdj?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Tyler
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or