I'm trying to use the NumericTextBox for values that are percentages, with three decimal points. How do I format it so it displays properly? I tried using .Decimals(3) but it still only displayed with two decimal numbers. For example, 34.567 displayed as 34.57... And it should also be a percentage, allowing only values up to 100.000
Here is what I have
@(Html.Kendo().NumericTextBox<
decimal
>()
.Name(
"adminFee"
)
// .Format("p") commented out since it didn;t appear to work
.Min(0)
.Max(100)
.Decimals(3)
.HtmlAttributes(
new
{ style =
"width: 100%"
, data_bind=
"value: AdminFee"
})
)