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

RadNumericTextBox auto-correct

3 Answers 48 Views
Input
This is a migrated thread and some comments may be shown as answers.
johnv
Top achievements
Rank 2
johnv asked on 02 Sep 2010, 02:30 PM
Hey Telerik Community,

I have a problem with how the RadNumericTextBox does its range validation. It does too much, and I am afraid that my users will end up with bad data values.

The Scenario:
When you assign a value to MaxValue, and the user exceeds that maximum value, the textbox auto-corrects the value to the max.

Ex: I set the max value to 9999.9 and allow the user to type in 6 digits using the MaxLength attribute.

The Problem:
The user accidentally types in 123456 and on blur the textbox validates and when validation fails the RadNumericTextBox auto-corrects the value to 9999.9. NOT GOOD for my customer. The values we are saving could put actual lives in harms way if they are not correct.

The Solution:
We would prefer that it simply fail validation, display its fail message, and not allow the user to save the record.

How can this be accomplished?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 02 Sep 2010, 02:55 PM
Hello John,

Please set AllowOutOfRangeAutoCorrect="false".

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
johnv
Top achievements
Rank 2
answered on 02 Sep 2010, 03:21 PM
Wow, that's pretty bad. Sorry about that.
0
Snehal
Top achievements
Rank 1
answered on 25 Sep 2013, 11:20 AM
we are using "2008.02.1001.20" version on Telerik. here we do not have this property. how can i handle this .

i will not be able update to new version as this is in production.

Thanks,
Tags
Input
Asked by
johnv
Top achievements
Rank 2
Answers by
Dimo
Telerik team
johnv
Top achievements
Rank 2
Snehal
Top achievements
Rank 1
Share this question
or