Kendo UI for ASP.NET MVC - Grid Globalization

2 posts, 0 answers
  1. Krishna
    Krishna avatar
    1 posts
    Member since:
    Jan 2017

    Posted 27 May Link to this post

    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

  2. Georgi
    Admin
    Georgi avatar
    146 posts

    Posted 30 May Link to this post

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