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

Numeric Text Box with Rad Input Manager

1 Answer 173 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 May 2013, 04:52 AM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 20 May 2013, 01:33 PM
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:
http://www.telerik.com/help/aspnet-ajax/input-numerictextbox-basics.html
( 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:
http://www.telerik.com/help/aspnet-ajax/input-numerictextbox-formatting-numeric-values.html
( Section Numeric value precision )

Hope the clarification was helpful.

Kind regards,
Eyup
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Michael
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or