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

Kendo UI for ASP.NET MVC - Grid Globalization

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krishna
Top achievements
Rank 1
Krishna asked on 28 May 2017, 04:48 AM

Dear Team...

 

I am new to Kendo implementation and hence i am creating this thread.

Currently, i am working on Kendo UI in my ASP.NET MVC application and i am facing issues in Grid Globalization...

 

Problem Statement

The application is a multi-lingual application which needs to change the language based on the user's preference.

Now, if user changes his preference to "DE" from "EN" then, on the next login the complete application should load in "DE".

 

Approach to the Problem

For other part of the application i am using Resource files and everything is working as expected

But, for kendo UI components such as grid etc. i need them to be loaded in "DE" too.. Based on the http://docs.telerik.com/aspnet-mvc/getting-started/globalization#localized-user-interface, i implemented the below lines in my layout.cshtml page so that it will be applied to all the pages...

_Loyout.cshtml

@{
        var culture = System.Globalization.CultureInfo.CurrentCulture.ToString();
    }
    <script src="@Url.Content("~/Scripts/kendo/2017.2.504/cultures/kendo.culture." + culture + ".min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/2017.2.504/messages/kendo.messages." + culture + ".min.js")"></script>
    <script>
        @Html.Kendo().Culture(false)
    </script>

 

Issue

Kendo grid is not changing "DE" language, i am still seeing some the english text such as "Items", "items per Page", etc.

Question

Could any one please let me know how to implement the Globalization in a proper way so that i can see the grid in complete "DE" language...?

 

Thanks,

Krishna

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 30 May 2017, 02:56 PM
Hello Krishna,

There are two approaches to localize the Grid, using resource files and using the JavaScript messages files. Based on your description it seems that you are using both approaches at the same time and that may cause conflicts. However, in order to ensure that this is the case we would need to investigate further.

Would you send us a sample runnable project where the issue you are seeing is replicated? This will enable us to examine the behavior locally and look for its cause.


Regards,
Georgi
Progress Telerik
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
Grid
Asked by
Krishna
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or