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

Grid Native Filter : customize list of operators

1 Answer 208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jpw
Top achievements
Rank 1
jpw asked on 19 Oct 2020, 09:20 AM

Hi, i'm new to kendo and i'm trying to create a filterable grid with a grid native component. Everything works well BUT i'm stuck with the full list of operators (contains, begins, is not null,...).

Is there an easy way to customize the list of operators ? I will probably only need "begins" and "is equal to".

I saw that with the grid-wrapper I could define a list with the property "filtterable" but it doesn't seem to work with grid native. I got an error saying that Filterable could'nt be assigned with an object.

Thanks a lot !

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 20 Oct 2020, 01:39 PM

Hi JPW,

I've already answered the same support ticket but just in case someone from the community is interested in the scenario you've asked about, I will also reply here. 

There is no built-in functionality you can use to customize the list of operators for a given column inside the Grid. This functionality can be implemented using the filterCell property of the Grid's column which gives us the freedom to define a custom filter for the selected column.

Here is a StackBlitz example demonstrating how we can implement the functionality you've asked about using a custom filter.

I am going to close the current thread. If you have additional questions related to the current case, let's keep the communication focused and continue it in the support ticket.

Regards,
Petar
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
Grid
Asked by
jpw
Top achievements
Rank 1
Answers by
Petar
Telerik team
Share this question
or