Kendo grid filter customizations

4 posts, 0 answers
  1. Aiswarya
    Aiswarya avatar
    8 posts
    Member since:
    Mar 2017

    Posted 18 Apr Link to this post

    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")
                                                                                     )))
                       

  2. Dragomir
    Admin
    Dragomir avatar
    4 posts

    Posted 19 Apr Link to this post

    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.
  3. Aiswarya
    Aiswarya avatar
    8 posts
    Member since:
    Mar 2017

    Posted 19 Apr in reply to Dragomir Link to this post

    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?
  4. Dragomir
    Admin
    Dragomir avatar
    4 posts

    Posted 20 Apr Link to this post

    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.
Back to Top