This is a migrated thread and some comments may be shown as answers.

"NumberDecimalDigits" property

2 Answers 59 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Dandan
Top achievements
Rank 1
Dandan asked on 28 Apr 2009, 10:21 AM
Hi,

I fixed "NumberFormatInfo.NumberDecimalDigits " property to be "0". The control display "0", but the Up & Down button don't work!
Please if you can help...

The code:


            NumericControl.NumberFormatInfo.NumberDecimalDigits = 0;



Thanks,
Dana

                      

2 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 29 Apr 2009, 09:12 AM
Hi Dandan,
 
The problem is that small change by default is set to  0.1.  Hence, when you remove the decimal digits it can't iterate the value by 0.1. The solution is to set SmallChange=1 , and RadNumericUpDown will be working as expected.

Regards,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dandan
Top achievements
Rank 1
answered on 05 May 2009, 07:39 AM
Thanks!

Tags
NumericUpDown
Asked by
Dandan
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Dandan
Top achievements
Rank 1
Share this question
or