Remove OR from GridColumnMenuFilter

1 Answer 67 Views
Filter  Grid
jon
Top achievements
Rank 1
jon asked on 08 Aug 2024, 01:48 PM

Is it possible to remove the OR clause from the GridColumnMenuFilter?

https://www.telerik.com/kendo-react-ui/components/grid/filtering/#toc-column-menu-filter

I'd like it to only AND the two filters together.

Thank you

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 Aug 2024, 04:09 AM

Hello, jon,

We have already replied your internal ticket on the same matter, for convenience I am copying my colleague's reply here for anyone else interested in the same topic:

Yes, you can remove the OR from the GridColumnMenuFilter by creating a custom UI component and pass it through the `filterUI` prop of the `GridColumnMenuFilter` to display it instead of the default one. This way the content of the filter menu can be customized to have only the two filters displayed. Here is an example of how you can utilize it and display a custom component that contains only the two filters where the AND option is set by default:

 

Kind regards,
Vessy
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Tags
Filter  Grid
Asked by
jon
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or