Changed Kendo Culture not applied.

7 posts, 1 answers
  1. Laurent
    Laurent avatar
    11 posts
    Member since:
    Mar 2014

    Posted 24 Aug 2015 Link to this post

    Hi,

     I've have to use Kendo Grid in several languages but in the same decimal and dates format (fr-FR). I managed to change Kendo language.

     I also add the script and add the routine to change kendo culture.

     

    <head>
    ...
        <script src="~/Scripts/Kendo/cultures/kendo.culture.fr-FR.min.js"></script>
        <script>
            kendo.culture('fr-FR');
        </script>
    </head>

    I also add in web.config;

    <system.web>
        <globalization culture="fr-FR" />
     </system.web>

    If I put a breakpoint and examine kendo variable, i have kendo.cultures.current = 'fr-FR'. The culture file is correctly included in page sources.

     Yet, the display format remains incorrect and when I edit a grid inline, I also have problems with validation.

     Am I missing something?

  2. Answer
    eo
    eo avatar
    27 posts
    Member since:
    Jul 2015

    Posted 24 Aug 2015 in reply to Laurent Link to this post

    Hello Laurent,

    It doesn't seem to me like you're missing anything. I would try different browsers and also here is some configuration that can be changed for the server-side culture.

  3. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 26 Aug 2015 Link to this post

    Hello,

    Could you paste here your grid configuration? Are you using server or ajax binding? The kendo-ui culture affects only ajax binding. Server-side binding will obey the current .NET culture.

    Also what is the format that doesn't work?

    Here is a live demo showing how things should work with ajax binding: http://dojo.telerik.com/@korchev/EpoFo

    Regards,
    Atanas Korchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Laurent
    Laurent avatar
    11 posts
    Member since:
    Mar 2014

    Posted 31 Aug 2015 Link to this post

    I first wanted to use simple html or razor element and it did'nt work (it still don't).

    Finally, to sove this issue I decided to use kendo element to edit grid inline. As kendo was properly configured, its elements fit Culture and UICulture.

    Thanks for your help.

  5. Dan
    Dan avatar
    167 posts
    Member since:
    Nov 2017

    Posted 06 Dec 2017 Link to this post

    Hi,

    Has anyone solved this issue?

    I have the following code

    <script src="/Scripts/cultures/kendo.culture.ro-RO.min.js"></script>
    <script>
        console.log("ro-RO " + kendo.getCulture().name);
        kendo.culture("ro-RO");
        console.log("ro-RO " + kendo.getCulture().name);
    </script>

    and the output surprise-surprise is this

    ro-RO en-US
    ro-RO en-US
    So doesn't the function kendo.culture do anything?

  6. Dan
    Dan avatar
    167 posts
    Member since:
    Nov 2017

    Posted 06 Dec 2017 in reply to Dan Link to this post

    Hi,

    So the output I solved because I copied the code from telerik and the path to the culture was wrong. However it seems that the parsing is still done using the en-US formats.

  7. Stefan
    Admin
    Stefan avatar
    2880 posts

    Posted 08 Dec 2017 Link to this post

    Hello, Dan,

    The parsing should be done for the set culture as well.

    This should also affect how the values are sent to the server.

    Check how changing the culture in the demo will affect the dates format on submit:

    http://dojo.telerik.com/aMONem

    If additional assistance is needed, please provide a runnable example and I will gladly assist.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 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