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

RadNumericUpDown Decimal Places

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 04 Jul 2008, 08:55 PM
Is there any way to increment as integers instead of two position decimal?

1 Answer, 1 is accepted

Sort by
0
P.Petrelli
Top achievements
Rank 1
answered on 05 Jul 2008, 08:48 AM
Hi John,

You can try the following:

1. Set the SmallChange property to 1
2. Set the NumberFormatInfo.NumberDecimalDigits to 0

So, the code could look like:

public Window1() 
    InitializeComponent(); 
    radNumericUpDown1.ValueFormat = Telerik.Windows.Controls.UI.ValueFormat.Numeric; 
    radNumericUpDown1.SmallChange = 1; 
    radNumericUpDown1.NumberFormatInfo.NumberDecimalDigits = 0; 

I hope this helps.

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
P.Petrelli
Top achievements
Rank 1
Share this question
or