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

RadNumericTextBox

1 Answer 82 Views
Input
This is a migrated thread and some comments may be shown as answers.
Andrew Currie
Top achievements
Rank 1
Andrew Currie asked on 22 Sep 2014, 08:02 AM
Morning,

On the RadNumericTextBox, I want to set MaxValue for validation BUT I do not want it to set the MaxValue automatically when a greater value is entered.  e.g. with MaxValue="6", if I enter 8, the value automatically changes to 6 on blur.  However, I want it to remain as 8 but show invalid.

How can I do this?  Do I need to use a validator control instead?


Thanks

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 25 Sep 2014, 05:35 AM
Hello Andrew,

In order to achieve the desired effect you can set the AllowOutOfRangeAutoCorrect property of the numeric to false.

ASPX:
<telerik:RadNumericTextBox  runat="server" ID="RadNumericTextBox1" MaxValue="6" AllowOutOfRangeAutoCorrect="false"></telerik:RadNumericTextBox>


Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Input
Asked by
Andrew Currie
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or