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

RadNumericTextBox for 16 digit numbers

2 Answers 172 Views
Input
This is a migrated thread and some comments may be shown as answers.
Sachin Kulkarni
Top achievements
Rank 1
Sachin Kulkarni asked on 26 Apr 2010, 08:08 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 29 Apr 2010, 12:54 PM
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.
0
Sachin Kulkarni
Top achievements
Rank 1
answered on 29 Apr 2010, 03:01 PM
Thank you very much for the response. That is the solution I was looking for.
Tags
Input
Asked by
Sachin Kulkarni
Top achievements
Rank 1
Answers by
Veli
Telerik team
Sachin Kulkarni
Top achievements
Rank 1
Share this question
or