NumericTextbox not showing decimal numbers correctly

2 posts, 0 answers
  1. Johan
    Johan avatar
    2 posts
    Member since:
    May 2013

    Posted 11 Sep 2013 Link to this post

    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?


  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 13 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top