NumberDecimalDigits does not round the value as expected

3 posts, 1 answers
  1. Mihai
    Mihai avatar
    10 posts
    Member since:
    Apr 2013

    Posted 17 Jun 2013 Link to this post

    Hi,

    We're using RadNumericUpDown to set some percentage values with 2 digits in our application.

    The case in which the control does not work as I expect is the following:
    • If I enter 0.001, the bound StagePercentage property is rounded as expected to 0
    • If I enter 0.0001, the bound StagePercentage property is rounded as expected to 0
    • If I enter 0.00001, the bound StagePercentage property is not rounded and set to 0.00001

    However, if I enter other values such as 0.11111 or 0.0000101, then the behavior is as expected.

    The xaml is the following:
    <telerik:RadNumericUpDown Minimum="0" Maximum="100" 
     NumberDecimalDigits="2"
     Width="250" HorizontalAlignment="Left" 
     Value="{Binding StagePercentage, Mode=TwoWay, ValidatesOnDataErrors=True}" />

    Is there a bug in the control or is it something that I am missing?

    Thank you.


    Mihai Coros
    .NET Developer
    www.coresystems.ch
  2. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 20 Jun 2013 Link to this post

    Hi Mihai,

    Thanks for your feedback, we were able to reproduce the issue as explained. We will need some time to investigate it further and after that I'll get back with more details.

    Regards,
    Kalin
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 25 Jun 2013 Link to this post

    Hello Mihai,

    We have logged the issue in our P.I.T.S. system, so you can track its status on the following link:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/15237

    I have updated your Тelerik points for the report.

    Regards,
    Kalin
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top