Problem when mixing cultures

3 posts, 0 answers
  1. Jean-François
    Jean-François avatar
    2 posts
    Member since:
    Nov 2012

    Posted 13 Mar 2013 Link to this post

    Hi,

    As our project will require mixing currencies from various countries, I tried to use the "culture" configuration
    when creating a NumericTextBox, such as follow:
    $(this).kendoNumericTextBox({
        format: "c2",
        culture: "fr-BE"
    });
    I loaded the fr-BE culture JS file in my page.

    The problem is when I try to type "10.42". (Belgian decimal character is a comma).
    When I press the . on the numeric keypad, it adds both a dot and a comma, so it gives: "10.,42".

    Whether I keep going like this, or I remove either the dot or the comma, it will automatically change to 1042.

    Using kendo.culture("fr-BE") fixes the problem, but the question is, should I use kendo.culture() before creating each widget that uses a different culture ?
    Or is that a bug ?

    Thanks
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 15 Mar 2013 Link to this post

    Hello Jean-François,

     
    I prepared a simple jsBin demo in order to replicate the issue, but to no avail. Could you please check it and let me know if I am missing something ?

    Regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Jean-François
    Jean-François avatar
    2 posts
    Member since:
    Nov 2012

    Posted 15 Mar 2013 Link to this post

    Actually I just tried again and I'm not able to reproduce it.
    I'll let you know if I get it again.

    Thanks for your answer.
Back to Top