This is a migrated thread and some comments may be shown as answers.
Set filterable "Extra" option according to data type
1 Answer 26 Views
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 1
Noah asked on 05 Mar 2020, 09:05 PM

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?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 09 Mar 2020, 05:30 PM

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.
Tags
Grid
Asked by
Noah
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or