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

Small Display Nit When Setting Invalid Value

2 Answers 23 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
KO
Top achievements
Rank 1
KO asked on 19 May 2010, 10:10 PM
Hello,

I noticed a tiny problem with the NumericUpDown. I set NumberFormatInfo.NumberDecimalDigits = 0, Minimum = 1 and Maximum = 10. The UpDown is bound to a property in the xaml and that property's value can sometimes be 0. When it is 0, the UpDown displays the minimum value (as one would expect) but it displays it in the default format, "1.0", ignoring the NumberDecimalDigits = 0.

This is easy to workaround by following good coding practices and never letting the property have a value of 0, but it occurred to me that the NumberDecimalDigits should never be ignored, once it is set. Say you are using it for a "Number of Children" field - it gives the impression that you could have fractional children, ha ha.

Regards,

KO

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 25 May 2010, 02:53 PM
Hi KO,

Thank you for contacting us.

I tried to reproduce the issue that you are describing, but to no avail. Could you please send us a small sample project in which this can be observed? In that way we will be able to track the source of the problem more accurately.

Looking forward to your reply.

Greetings,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
KO
Top achievements
Rank 1
answered on 25 May 2010, 04:15 PM
Konstantina,

I couldn't reproduce it in a small test project either. Sorry to waste your time.

KO
Tags
NumericUpDown
Asked by
KO
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
KO
Top achievements
Rank 1
Share this question
or