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

Is it possible to have currency without decimals?

2 Answers 501 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Jonathan Travis
Top achievements
Rank 1
Jonathan Travis asked on 19 Dec 2013, 01:18 PM
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 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 19 Dec 2013, 02:28 PM
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!
0
Jonathan Travis
Top achievements
Rank 1
answered on 19 Dec 2013, 03:04 PM
Worked perfectly, thanks!
Tags
NumericTextBox
Asked by
Jonathan Travis
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Jonathan Travis
Top achievements
Rank 1
Share this question
or