Show Trailing Zeros

2 posts, 0 answers
  1. Dipen
    Dipen avatar
    10 posts
    Member since:
    Jan 2012

    Posted 19 Apr 2012 Link to this post

    Hi all,

    I have  RadNumericTextBox with 3 Decimal Digits. I would like to show any trailing zeros and also don't want rounding feature in textbox


    If value is 0.14, I want to display 0.140

    how can i achieve this functionality
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 23 Apr 2012 Link to this post


    According to this forum thread, if you set AllowRounding="false" , then it will disable the ability to display trailing zeros after your decimal point.

    In this forum thread, near the bottom, the following solution is marked as the answer to keep 4 decimal digits, including the trailing zeros, without allowing rounding:

    In order to show 4 decimal digits, you have to set AllowRounding="false" and KeepNotRoundedValue="true"

    See the Formatting Numeric Values documentation page for insights.

    I hope this helps!
  3. DevCraft R3 2016 release webinar banner
Back to Top