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

NumericTextbox not showing decimal numbers correctly

1 Answer 215 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 11 Sep 2013, 02:15 PM
Hi 

I have a NumericTextbox bound to a model variable in MVC. I'm reading a decimal value from a database (123.50) , but it is displayed as 123.00. I included the relevant Kendo culture file kendo.culture.en-ZA.min.js , and initialized the correct culture with

$(function () {
    kendo.culture("en-ZA");
});

Any idea why the places after the decimal point are not showed?


1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Sep 2013, 07:41 AM
Hello Johan,

 
If the culture of the server is different than "en-ZA" (probably it is "en-US") then the number will not be serialized with comma decimal separator. As you pointed in the support thread opened on the same subject the server culture should be set to "en-ZA":

<globalization culture="en-za" uiCulture="en-za" requestEncoding="utf-8" responseEncoding="utf-8" />

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NumericTextBox
Asked by
Johan
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or