Filtering operators localisation bug?

4 posts, 2 answers
  1. Answer
    Jan Olsmar
    Jan Olsmar avatar
    35 posts
    Member since:
    Mar 2006

    Posted 25 Sep 2013 Link to this post

    I have few grids and I do filtering and reduce the standard operators. Code below.
    I also use the Swedish language. However all the standard operators show up for the columns. (Extra(false) works)
    When I remove the Kendo.Mvc.resources.dll everything works as expected.
    The version of the dll is 2013.2.918.340 and I have the same version for the Kendo.Mvc.dll
    The translations works fine when the resources are available but I like to reduce the operators.
    Is this a bug? 
    .Filterable(filterable => filterable
                .Extra(false)
                .Operators(operators => operators
                    .ForString(str => str.Clear()
                        .Contains("Innehåller")
                             .StartsWith("Startar med")
                        .IsEqualTo("Är lika med")
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 26 Sep 2013 Link to this post

    Hi Jan,


    This is the expected behavior with the current implementation of the filter menu. In order to override it, you should set the filters on a column level.
    E.g.
    columns.Bound(p => p.FirstName).Filterable(filterable => filterable
                .Extra(false)
                .Operators(operators => operators
                    .ForString(str => str.Clear()
                        .Contains("Innehåller")
                             .StartsWith("Startar med")
                        .IsEqualTo("Är lika med")

     

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Jan Olsmar
    Jan Olsmar avatar
    35 posts
    Member since:
    Mar 2006

    Posted 26 Sep 2013 Link to this post

    OK Thanks,
    It works as a workaround. However I think the expected behavior is that it works for Swedish the same way it works for English. At least it was my expectation.
    Jan
  5. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 26 Sep 2013 Link to this post

    Hello Jan,


    Thank you for the suggestion. I'll pass it to the developers team.

     

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready