This question is locked. New answers and comments are not allowed.
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!
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!