RadNumericTextBox max abnormal behavior?

4 posts, 0 answers
  1. Jim Clingenpeel
    Jim Clingenpeel avatar
    2 posts
    Member since:
    Sep 2008

    Posted 18 Feb 2010 Link to this post

    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!
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 23 Feb 2010 Link to this post

    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.
  3. Jim Clingenpeel
    Jim Clingenpeel avatar
    2 posts
    Member since:
    Sep 2008

    Posted 23 Feb 2010 Link to this post

    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.
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 24 Feb 2010 Link to this post

    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.
Back to Top