GridColumnMenuCheckboxFilter Search Functionality

2 posts, 0 answers
  1. David
    David avatar
    31 posts
    Member since:
    Sep 2019

    Posted 10 Dec 2020 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 10 Dec 2020 Link to this post

    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/.

Back to Top