RadNumericTextBox for 16 digit numbers

3 posts, 1 answers
  1. Sachin Kulkarni
    Sachin Kulkarni avatar
    2 posts
    Member since:
    May 2008

    Posted 26 Apr 2010 Link to this post

    I am having trouble using RadNumericTextBox to allow the user to enter 16 digit numbers. The following is my markup:
     <telerik:RadNumericTextBox ID="txtCCNum" runat="server" Type="Number"
                                    MaxValue="9999999999999999" AllowOutOfRangeAutoCorrect="false" MinValue="1" >
                                    <NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" />
                                    <IncrementSettings InterceptArrowKeys="false" InterceptMouseWheel="false" />
                                </telerik:RadNumericTextBox>
    1. The value is being rounded up.
    2. How do I retrieve the value in a simple notation? (not expenonential notation like 5.2400000e+15)

    Thanks.
    Sachin



  2. Answer
    Veli
    Admin
    Veli avatar
    2002 posts

    Posted 29 Apr 2010 Link to this post

    Hi Sachin,

    RadNumericTextBox does not support numbers that large, and this limitation comes from the javascript numeric parsing. Javascript itself does not support calculations with numbers that large and RadNumericTextBox uses these calculations for parsing, storing and retrieving the entered value.

    For numbers that large, you are encouraged to use RadInputManager and regular expressions with a standard TextBox control. Here is also a demo.

    Sincerely yours,
    Veli
    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.
  3. Sachin Kulkarni
    Sachin Kulkarni avatar
    2 posts
    Member since:
    May 2008

    Posted 29 Apr 2010 Link to this post

    Thank you very much for the response. That is the solution I was looking for.
Back to Top