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

Where is the NumberControl property

2 Answers 42 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 20 May 2009, 07:10 PM
Hi,

I am using the RadNumericUpDown control and would like to use integers.  I saw the post about the NumberControl property but I can't find this property.  What am I doing wrong?

Thanks,
Darren

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 21 May 2009, 09:31 AM
Hi Darren ,

Could you please send me a link to the blog post about the NumberControl property? I was not able to find it.

To display integers in RadNumericUpDown you need to set both NumberFormatInfo and SmallChange properties:
System.Globalization.NumberFormatInfo format = new System.Globalization.NumberFormatInfo();
format.NumberDecimalDigits = 0;
RadNumericUpDown1.NumberFormatInfo = format;
RadNumericUpDown1.SmallChange = 1;

Note that due to limitations of the Silverlight XAML parser you cannot set the NumberFormatInfo property from XAML.

Best wishes,
Valeri Hristov
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
Darren
Top achievements
Rank 1
answered on 21 May 2009, 12:53 PM
Ah!  Now I understand.  That worked!  Thanks again!
Tags
NumericUpDown
Asked by
Darren
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Darren
Top achievements
Rank 1
Share this question
or