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

Incorrect decimal places in currency textbox

0 Answers 53 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Trent
Top achievements
Rank 1
Trent asked on 30 Apr 2012, 01:42 AM
Hi all.

I'm using a currency textbox in a form and I'm defaulting the value to a property in my model as follows:

@Html.Telerik().CurrencyTextBox().Name("ExpenseItemAmount").Spinners(false).Value(@Model.ForexAmount)

This works fine except when the form opens up there are too many decimal places. '98' is formatted as '98.00000'.

I've tried adding '.DecimalDigits(2)' to my textbox definition but there's no change.

If I edit the value to '45' the textbox displays the value as '45' and not '45.00'

Anyone else seen this? Am I doing something incorrect?

Thanks!

Tags
NumericTextBox
Asked by
Trent
Top achievements
Rank 1
Share this question
or