This question is locked. New answers and comments are not allowed.
Hi,
We're using RadNumericUpDown to set some percentage values with 2 digits in our application.
The case in which the control does not work as I expect is the following:
However, if I enter other values such as 0.11111 or 0.0000101, then the behavior is as expected.
We're using RadNumericUpDown to set some percentage values with 2 digits in our application.
The case in which the control does not work as I expect is the following:
- If I enter 0.001, the bound StagePercentage property is rounded as expected to 0
- If I enter 0.0001, the bound StagePercentage property is rounded as expected to 0
- If I enter 0.00001, the bound StagePercentage property is not rounded and set to 0.00001
However, if I enter other values such as 0.11111 or 0.0000101, then the behavior is as expected.
The xaml is the following:
Is there a bug in the control or is it something that I am missing?
Thank you.
Mihai Coros
.NET Developer
www.coresystems.ch
<telerik:RadNumericUpDown Minimum="0" Maximum="100" NumberDecimalDigits="2"
Width="250" HorizontalAlignment="Left" Value="{Binding StagePercentage, Mode=TwoWay, ValidatesOnDataErrors=True}" />Is there a bug in the control or is it something that I am missing?
Thank you.
Mihai Coros
.NET Developer
www.coresystems.ch