Given negative numbers resetting to zero after certain decimal value

4 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 20 Nov 2015 Link to this post

    Hi,

     In my project one of the input control is RadNumericTextBox and  it's allowed range is from --99999999999.999999999999 to 99999999999.999999999999.

     So i have given DecimalDigits value as 12.  But it is working only for Positive numbers. i.e. if i input -0.000000001  in the NumericTextbox and focus out of the control is resetting to ZERO.

    I have tried by making AllowRounding value to 'false' also but no use .  So anyone please help me in this.

    I should above to insert even negative numbers in the allowed range as shown above.

      

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 24 Nov 2015 Link to this post

    Hi Gopinath,

    I have tested the scenario that you are describing with our latest version, but I was not able to replicate the issue in question. Following is the RadNumericTextBox that I have tested:
    <telerik:RadNumericTextBox runat="server" MinValue="-99999999999.999999999999" MaxValue="99999999999.999999999999" NumberFormat-AllowRounding="true"
         NumberFormat-DecimalDigits="12">
    </telerik:RadNumericTextBox>

    If the issue persists on your side, please upgrade to our latest version and see if the same problem will be observed.


    Kind Regards,
    Konstantin Dikov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 02 Dec 2015 in reply to Konstantin Dikov Link to this post

    Thanks for update. 

    'NumberFormat-AllowRounding="true" giving the trailing zeros if the decimal digits are less than 12.

    While finding the fix for that i have found the thread http://www.telerik.com/forums/radnumerictextbox-decimal-digits-zero-problem which is similar. But this fix is end up with showing the exponential values instead of decimal value if the entered value is less i.e i have tried with -0.00000001.

    So finally fix should be like, i want to display non exponential value  i.e. -0.00000001 without trailing zeros.

  5. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 06 Dec 2015 Link to this post

    Hello Gopinath,

    The requirement that you have could not be achieved and the exponential value will be displayed in this scenario. Nevertheless, you could log a feature request in our Ideas & Feedback Portal for exposing a property that could prevent the exponential to be displayed:
    If the item receives enough votes, our developers team will investigate the possibility of such integration.


    Best Regards,
    Konstantin Dikov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top