Adding custom operators to column filter

1 Answer 3415 Views
Grid
Nicole
Top achievements
Rank 1
Nicole asked on 13 Oct 2016, 04:30 PM

I've been testing the Grid and have been liking what I've seen so far. There is something that I'm getting caught up on at the moment though.

I'd like to add some custom operators to the column filters for certain fields we use. Things like 'between', 'in list' etc. Is there a way to add these options or will we have to create a completely custom implementation of filtering? Thanks.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Oct 2016, 01:05 PM
Hello Joe,

The desired behaviour to add custom operators can be achieved using the filter.operator property of the DataSource and using a custom function:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-filter.operator

More information can be found in similar threads in our forum. They also have some examples:

http://www.telerik.com/forums/how-to-define-a-custom-filter-operator

http://www.telerik.com/forums/custom-filtering-7b617857877c

Please have in mind that this is a custom filter, and adding it as an option in the filter menu is not supported.

If you would like to suggest more filter operators that can be useful, submit a feature request in our UserVoice portal, and based on its popularity we may implement it in a future release:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

I hope this is helpful.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Nicole
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or