Numeric Text Box with Rad Input Manager

Thread is closed for posting
2 posts, 1 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Apr 2012

    Posted 14 May 2013 Link to this post


    I have some problem in Text Box with Numeric Rad Input Manager.
    When I input value more than 20 digit such as 99999999999999999999, the value that I input is always changed to  100000000000000000. In Rad Input Manager, I set max value to 99999999999999999999. 

    I added screenshot for help. Pict IMG-15052013-104957-Edit.png is when I input value and Pict IMG-15052013-105006-Edit.png
    is after I input value.  

    I just want the value to show correctly to 99999999999999999999 not to 100000000000000000. Can you help me to check this issue ?

    Thanks before.
  2. Answer
    Eyup avatar
    2941 posts

    Posted 20 May 2013 Link to this post

    Hello Michael,

    Please note that RadNumericTextBox does not support maximum and minimum values with a greater magnitude than +/- 2^46. Setting the MaxValue property to more than 2^46 or the MinValue property to less than -2^46 can cause abnormalities in the RadNumericTextBox behavior, as stated in the following topic:
    ( Section Limiting the range )

    Furthermore, since the RadNumericTextBox operates on both client and server side, it is limited by the data types used in C# and JavaScript. Although it could be bound to Decimal type using its DbValue property, its precision will be limited to JavaScript’s Number type. Therefore, it is recommended to use only numbers within range of Double type, which means that you will get only 15-16 digit precision:
    ( Section Numeric value precision )

    Hope the clarification was helpful.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top