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

RadNumericUpDown NumberFormatInfo.NumberDecimalDigits concurrency issue

2 Answers 209 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Rogério Ferreira
Top achievements
Rank 1
Rogério Ferreira asked on 27 Jul 2009, 09:59 AM
Hello,

I'm facing a problem when i have more than one RadNumericUpDown control in my page.
The problem is that if I want to specify a different number of decimal places for my RadNumericControls, they will be formatted with same number of decimal places equals to the first that i've specified.

Ex:
RadNumericUpDownCtrl1.NumberFormatInfo.NumberDecimalDigits = 3;
RadNumericUpDownCtrl2.NumberFormatInfo.NumberDecimalDigits = 3;
RadNumericUpDownCtrl3.NumberFormatInfo.NumberDecimalDigits = 0;


Best regards,
Rogério Ferreira

2 Answers, 1 is accepted

Sort by
0
Rogério Ferreira
Top achievements
Rank 1
answered on 27 Jul 2009, 10:50 AM
I already found a workaround. If I declare 3 differents System.Globalization.NumberFormatInfo and associate them to each RadNumericUpDown it works well ...

Ex
System.Globalization.NumberFormatInfo format = new System.Globalization.NumberFormatInfo();
format.NumberDecimalDigits = 3;
RadNumericUpDown1.NumberFormatInfo=format;

System.Globalization.NumberFormatInfo format2 = new System.Globalization.NumberFormatInfo();
format2.NumberDecimalDigits = 0;
RadNumericUpDown2.NumberFormatInfo=format2;

Best Regards,
Rogério Ferreira
0
Hristo Borisov
Telerik team
answered on 28 Jul 2009, 07:19 AM
Hello Rogério Ferreira,

Yes we are aware of this issue and we are working on resolving it. I agree that this is not an expected behavior and shouldn't be the way it is. Thanks for contacting us and we look forward to receiving more valuable feedback from you.

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
Rogério Ferreira
Top achievements
Rank 1
Answers by
Rogério Ferreira
Top achievements
Rank 1
Hristo Borisov
Telerik team
Share this question
or