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

[Solved] Can't enter decimal as first character

1 Answer 70 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.
Sydney
Top achievements
Rank 1
Sydney asked on 17 Feb 2011, 11:14 PM
For the following, how can I allow the user to type a value without a leading zero?  ".1" should be a perfectly valid entry for this, but it is not allowed.

@Html.Telerik()
.NumericTextBoxFor(model => model.Item.PValue)
.DecimalDigits(2)
.MaxValue(1)
.MinValue(0)
.IncrementStep((decimal).1)

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 18 Feb 2011, 10:10 AM
Hello Sydney,

 
The reported behavior is by design. However we will improve it in our next official release of Telerik Components for ASP.NET MVC and the NumericTextBox component will allow to the end users to enter decimal separator without leading zero.

Regards,
Georgi Krustev
the Telerik team
Tags
NumericTextBox
Asked by
Sydney
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or