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

Problem when mixing cultures

2 Answers 81 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Jean-François
Top achievements
Rank 1
Jean-François asked on 13 Mar 2013, 04:01 PM
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 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Mar 2013, 08:00 AM
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!
0
Jean-François
Top achievements
Rank 1
answered on 15 Mar 2013, 12:21 PM
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.
Tags
NumericTextBox
Asked by
Jean-François
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Jean-François
Top achievements
Rank 1
Share this question
or