Set filterable "Extra" option according to data type

2 posts, 0 answers
  1. Noah
    Noah avatar
    3 posts
    Member since:
    Mar 2020

    Posted 05 Mar 2020 Link to this post

    I like how I can set the filterable options for the whole grid according to data type as below:

    Html.Kendo().Grid<MyModel>()
    .Filterable(filterable =>
        {
            filterable.Extra(false);
            filterable.Operators(o =>
            {
                o.ForString(str => str.Clear().Contains("Contains").IsEqualTo("Is equal to"));
                o.ForEnums(en => en.Clear().IsEqualTo("Is equal to"));
            });
        });

     

    However, I would like to set Extra(false) for Strings and Enums, but set Extra(true) for Numbers and DateTimes. Is there a way to set the Extra() flag per data type at the grid level without having to set it for each column at the column level?

     

     

     

     

  2. Georgi
    Admin
    Georgi avatar
    684 posts

    Posted 09 Mar 2020 Link to this post

    Hi Noah,

    Currently we only support setting the Extra configuration globally or per column. Nevertheless, I can suggest you to submit a feature request to our feedback portal and we will consider implementing it in a future release.

    Regards,
    Georgi
    Progress Telerik

    Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Back to Top