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

Display integer value

1 Answer 63 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
ayala
Top achievements
Rank 1
ayala asked on 25 Feb 2009, 11:47 AM
Hi,

I used your NumericUpDown control,
It's great control!!!

The display value now is a Double value, I want to display an integer value.


How can I do it?  
Thanks,

1 Answer, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 25 Feb 2009, 12:48 PM
Hi ayala,

Depending on your ValueFormat property you can set the NumberFormatInfo.NumberDecimalDigits to 0. If your ValueFormat is set to percentage or currency you may set the NumberFormatInfo.PercentageDecimalDigits or NumberFormatInfo.CurrencyDecimalDigits to 0. I hope this will resolve your issue. Thank you for contacting us.

Sincerely yours,
Hristo Borisov
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.
Tags
NumericUpDown
Asked by
ayala
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Share this question
or