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
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.