RadNumericUpDown NumberFormatInfo.NumberDecimalDigits concurrency issue

3 posts, 0 answers
  1. Rogério Ferreira
    Rogério Ferreira avatar
    9 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2009 Link to this post

    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. Rogério Ferreira
    Rogério Ferreira avatar
    9 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2009 Link to this post

    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
  3. DevCraft banner
  4. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 28 Jul 2009 Link to this post

    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.
Back to Top