4 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 07 Mar 2012 Link to this post


    This is with reference to the below thread


    I know that RadNumericTextbox has a limitation of 2^46 but is it possible to turn-off the automatic rounding to the maximum value allowed. I don't want the user to automatically be rounded to the maxvalue if the entered value is larger. Instead, I want to signal the user about the error, and ask him/her to retype the value.

    can anyone please help me in this
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Mar 2012 Link to this post

    Hello Gopinath,

    Try setting AllowOutOfRangeAutoCorrect to false to avoid showing the Max Value and you can show the error message in a Label as shown below
    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" AllowOutOfRangeAutoCorrect="false">
         <ClientEvents OnError="OnError" />
         <ClientEvents OnFocus="OnFocus" />
     <asp:Label ID="lbl1" runat="server" Text=" "></asp:Label>
    <script type="text/javascript">
    var lbl = document.getElementById("lbl1");
    function OnError(sender, args)
      lbl.innerHTML = "ReType";
    function OnFocus(sender, args)
     lbl.innerHTML = "";

  3. DevCraft R3 2016 release webinar banner
  4. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 12 Mar 2012 Link to this post

    Thanks Princy. I tried putting that attribute you suggested but still the value is getting re-set to 10000000000000000000. Without this attribute it was resetting to 70368744177664. Please let me know if we can avoid resetting to any value.

  5. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 14 Mar 2012 Link to this post


    You also have the options of using the RadMaskedTextBox control, or trying to implement your own parsing functionality using javascript, which is more difficult that the first option would be.
    You can reference the following online demo:  Input/First Look.
    Hope this helps!
Back to Top