This is a migrated thread and some comments may be shown as answers.
Show Trailing Zeros
1 Answer 30 Views
This is a migrated thread and some comments may be shown as answers.
Dipen
Top achievements
Rank 1
Dipen asked on 19 Apr 2012, 05:25 PM
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

AllowRounding
="false"

If value is 0.14, I want to display 0.140

how can i achieve this functionality

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 23 Apr 2012, 05:06 PM
Dipen:

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!
Tags
Input
Asked by
Dipen
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or