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

Min and max always change the number

1 Answer 60 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
OMER
Top achievements
Rank 1
OMER asked on 11 Dec 2014, 03:04 PM
Hi,
This widget looks a great addition to forms UI.
What I'm missing, in regards to user experience is this:
Let's say a widget is limited to min="20", max="40".
Now, a user wants to add 30, but instead, he adds 300 (typo).
The widget then reverts to 40, with no indication that anything changed.  A JS script handling the form submit will get the max value (40) and not 30 or 300... hence, there's no way to actually validate this.
This might be a source for both user and developer frustration... (well, not might - it's a source of frustration for this developer :)).
Is there a way to make this a little bit more user friendly and notify on erroneous change?

1 Answer, 1 is accepted

Sort by
-1
Georgi Krustev
Telerik team
answered on 15 Dec 2014, 09:50 AM
Hello OMER,

If you would like to allow values that are not valid in order to notify the end user, then I will suggest you set min and max values to null (default values) and leave the validation on the validation framework you are using. Thus the user will be able to enter "300", which is valid number but "out of range". In this case the validation will trigger and will notify the end user that the value is not correct.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
NumericTextBox
Asked by
OMER
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or