Small Display Nit When Setting Invalid Value

3 posts, 1 answers
  1. KO
    KO avatar
    16 posts
    Member since:
    Apr 2010

    Posted 19 May 2010 Link to this post

    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. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 May 2010 Link to this post

    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.
  3. DevCraft banner
  4. KO
    KO avatar
    16 posts
    Member since:
    Apr 2010

    Posted 25 May 2010 Link to this post

    Konstantina,

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

    KO
Back to Top