Adding custom operators to column filter

2 posts, 0 answers
  1. Joe
    Joe avatar
    1 posts
    Member since:
    Aug 2016

    Posted 13 Oct Link to this post

    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.

  2. Stefan
    Admin
    Stefan avatar
    264 posts

    Posted 14 Oct Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
Back to Top