2 posts, 0 answers
  1. Andrew Currie
    Andrew Currie avatar
    19 posts
    Member since:
    Jun 2008

    Posted 22 Sep 2014 Link to this post


    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?

  2. Angel Petrov
    Angel Petrov avatar
    1141 posts

    Posted 25 Sep 2014 Link to this post

    Hello Andrew,

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

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

    Angel Petrov

    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.

Back to Top