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

Numeric format: 12,123.33 to 12.123,33 € US to Spain

1 Answer 107 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
JC
Top achievements
Rank 1
JC asked on 19 Jun 2014, 03:45 PM
I need show this format: 12.123,33 € for use it in Spain.
Change period (dot) for thousands and comma for decimals.

In my code I have:
<script type="text/javascript" src="js/kendo.culture.es-ES.js"></script>

The value of the decimal column (MySQL database) is: 12123.33
I tried with this code:
a)
$("#importe_oferta").kendoNumericTextBox({
culture: "es-ES"
format: "c2",
min: 0,
decimals: 2,
spinners: false
});
Result: 1.212.33.00 € ->wrong

b)
$("#importe_oferta").kendoNumericTextBox({
format: "c2",
min: 0,
decimals: 2,
spinners: false
)};
Result: $12,123.33 ->wrong

c)
$("#importe_oferta").kendoNumericTextBox({
min: 0,
decimals: 2,
spinners: false
 });
Result: 1,2123.43 ->wrong

And the same problem on the grid : 12,123.43 <-wrong

If anybody have the solution of this problem, please write a possible solution.
Thanks
Julio

1 Answer, 1 is accepted

Sort by
0
Holger
Top achievements
Rank 1
answered on 20 Jun 2014, 09:55 AM
Hi,

The following sample works fine for me: http://trykendoui.telerik.com/iJur

Maybe there is an error in the reference to the culture file at your side?

Regards
Holger
Tags
NumericTextBox
Asked by
JC
Top achievements
Rank 1
Answers by
Holger
Top achievements
Rank 1
Share this question
or