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

Kendo grid filter customizations

3 Answers 42 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Aiswarya
Top achievements
Rank 1
Aiswarya asked on 18 Apr 2017, 10:33 AM

How can we customize kendo grid filter options "Is empty","Is not empty" etc like the code which is mentioned below.

.Filterable(filter => filter.Mode(GridFilterMode.Menu).Extra(false)
                                                 .Operators(oper => oper.ForString(str => str.Clear()
                                                                                  .IsEqualTo("Is equal to")
                                                                                  .Contains("Contains")
                                                                                  .StartsWith("Starts with")
                                                                                 )))
                   

3 Answers, 1 is accepted

Sort by
0
Dragomir
Telerik team
answered on 19 Apr 2017, 09:01 AM
Hi Aiswarya,

You can try the following code:

.Filterable(filter => filter.Mode(GridFilterMode.Menu).Extra(false)
    .Operators(oper => oper.ForString(str => str.Clear()
        .IsEqualTo("Is equal to")
        .Contains("Contains")
        .StartsWith("Starts with")
        .IsEmpty("Is empty")
        .IsNotEmpty("Is not empty")
      )
    )
 )


We are adding two new lines after StartWith for the IsEmpty, IsNotEmpty filtering.

Regards,
Dragomir
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Aiswarya
Top achievements
Rank 1
answered on 19 Apr 2017, 12:03 PM
I tried the same with 2017.1.223 kendo script release but lead to an error.Do we have to upgrade the kendo.mvc dll?
0
Dragomir
Telerik team
answered on 20 Apr 2017, 08:45 AM

Hello Aiswarya,

You should update not only the scripts but also kendo.mvc.dll for the 2017.1.223 release. The IsEmpty, IsNotEmpty options are added in this release.

While you are in a trial period you can evaluate the MVC Wrappers for Kendo UI. After this period, you need to buy Kendo UI Complete license in order to be compliant with the license agreements.

Regards,
Dragomir
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Data Source
Asked by
Aiswarya
Top achievements
Rank 1
Answers by
Dragomir
Telerik team
Aiswarya
Top achievements
Rank 1
Share this question
or