Decimal digit problem?

2 posts, 0 answers
  1. Ola
    Ola avatar
    5 posts
    Member since:
    Aug 2011

    Posted 24 Oct 2012 Link to this post

    I want to display a decimal number with 2 decimals. The value is 1.3 but the numeric textbox is showing 130.00. By setting a swedish culture I would expect it to show 1,30 but even if I set en-US as culture or no culture at all it shows 130.00. If I change it to a regular Html.TextBoxFor I get 1,3.

    @Html.Kendo().NumericTextBoxFor(model => model.Zone.CostFactor).Format("n2").Culture("sv-SE").Decimals(2)

    /Ola.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 25 Oct 2012 Link to this post

    Hello Ola,

     
    I suppose that the required culture scripts are not registed on the page. Check this help topic for more information.

    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. UI for ASP.NET MVC is VS 2017 Ready
Back to Top