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

Filtering operators localisation bug?

3 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan Olsmar
Top achievements
Rank 1
Jan Olsmar asked on 25 Sep 2013, 10:58 AM
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")

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 26 Sep 2013, 11:42 AM
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!
0
Jan Olsmar
Top achievements
Rank 1
answered on 26 Sep 2013, 12:07 PM
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
0
Accepted
Dimiter Madjarov
Telerik team
answered on 26 Sep 2013, 02:32 PM
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!
Tags
Grid
Asked by
Jan Olsmar
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jan Olsmar
Top achievements
Rank 1
Share this question
or