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

GridColumnMenuCheckboxFilter Search Functionality

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Iron
Veteran
David asked on 10 Dec 2020, 06:32 AM

Hi,

The jQuery Grid Checkbox Filter has a search box which can be used to find any entries containing the search string entered (see this demo and type in 'syrup' for example, one result is shown): https://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes

The GridColumnMenuCheckboxFilter also has a search box, however this appears to only return entries matching or starting with the search string entered (see this demo and type in 'syrup', no results are shown): https://www.telerik.com/kendo-react-ui/components/grid/filtering/#toc-column-menu-filter

Is there any way to change the functionality of the GridColumnMenuCheckboxFilter to match the jQuery implementation?

 

Kind regards,

David

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Dec 2020, 07:23 AM

Hello, David,

Indeed, currently, the default operator is set to `startswith`.

We agree that this is something that is useful to be modified. I have logged a task to make a prop that will allow setting the search bar's filter operator:

https://github.com/telerik/kendo-react/issues/806

Currently, this can be modified by using a custom search bar and filtering the data programmatically:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnMenuCheckboxFilterProps/#toc-searchbox

This is an example of how it can be done:

https://stackblitz.com/edit/react-zru3gf?file=app%2FcolumnMenu.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Share this question
or