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

RadNumericTextBox max abnormal behavior?

3 Answers 89 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jim Clingenpeel
Top achievements
Rank 1
Jim Clingenpeel asked on 18 Feb 2010, 07:41 PM
In the documentation for the RadNumericTextBox, there is the following line:
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.

I need to use it with a larger value than 2^46, what sort of "abnormalities" should I look out for?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 23 Feb 2010, 02:16 PM
Hello Jim,

The problems are related to the javascript numeric calculations with numeric values greater than 2^46. You can expect inaccuracies on the result of mathematical operations with values that large in javascript. Consider using regular expressions to validate large numeric values instead.

Regards,
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
Jim Clingenpeel
Top achievements
Rank 1
answered on 23 Feb 2010, 08:13 PM
Thanks for the response, Veli...

I have two RadNumericTextBoxes with a max of 999999999.99 and 999999999999.99 that will be multiplied and have the value put into another RadNumericTextBox that is read only.  This value in the last box will be validated in code behind with other methods and will saved to the database and shown later (if valid)  Do you think that would cause a problem, based on your response?

Thanks again.
0
Veli
Telerik team
answered on 24 Feb 2010, 02:36 PM
OK, so the max product of your 2 fields is 999999999989990000000.0001.

I suggest you use regular ASP.NET TextBox controls here. I have created a small web page you can test locally. It uses regular ASP.NET TextBox controls with some javascript to validate the numbers you need. The product is added to a third textbox. Check it out.

Best wishes,
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.
Tags
Input
Asked by
Jim Clingenpeel
Top achievements
Rank 1
Answers by
Veli
Telerik team
Jim Clingenpeel
Top achievements
Rank 1
Share this question
or