Is it possible to have currency without decimals?

3 posts, 0 answers
  1. David Dulac
    David Dulac avatar
    20 posts
    Member since:
    Dec 2013

    Posted 19 Dec 2013 Link to this post

    I'm trying to set a numeric textbox without decimals formatted for currency.
    @(Html.Kendo().NumericTextBoxFor(model => model.EstimatedRevenue).Format("C").Spinners(false).Decimals(0))
    I want the value to be displayed in whole dollars, is this possible?
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 19 Dec 2013 Link to this post

    Hello Buddy,

    You can try with format set to "c0" 

    @(Html.Kendo().NumericTextBoxFor(model => model.EstimatedRevenue).Format("C0").Spinners(false).Decimals(0))


    Kind Regards,
    Petur Subev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. David Dulac
    David Dulac avatar
    20 posts
    Member since:
    Dec 2013

    Posted 19 Dec 2013 Link to this post

    Worked perfectly, thanks!
Back to Top