Radnumerictextbox decimal part problem

2 posts, 0 answers
  1. Erkan Şahan
    Erkan Şahan avatar
    4 posts
    Member since:
    Oct 2009

    Posted 11 Jan 2010 Link to this post

    Hi,

    I am using a Radnumerictextbox with this code on front side and I am setting its parameters on the codebehind according to selection,
    On aspx:

    <telerik:RadNumericTextBox ShowSpinButtons="true" NumberFormat-DecimalDigits="4"  IncrementSettings-InterceptArrowKeys="true"

     

     

    IncrementSettings-InterceptMouseWheel="true" Label="" runat="server" ID="txtPrice"

     

     

    Width="80px">

     

     

    </telerik:RadNumericTextBox>


    On .cs

    txtPrice.MinValue = 1.2575
    txtPrice.MaxValue= 1.4575
    txtPrice.IncrementSettings.Step =0.0005

    The problem is while using spin buttons to change values , it show the decimal part more than i set which was 4.

    For instance ; when the value is set to 1.2580 it shows 1.257999999999. After clickling up spin button it makes it 1.2585 and after some more clicking on some other values ist shows this 999999 part of decimal thing.

    Is this a bug of the component ? if so, what can i do to fix this.

     

  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 12 Jan 2010 Link to this post

    Hello Erkan,

    I was able to replicate the problem with versions of Telerik.Web.UI prior to Q3 Service Pack 1. However the problem did not appear when I tested with the latest official release (2009.3 1208). Please update your controls to that version and let us know if that solves the problem for you.

    Sincerely yours,
    Pavel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top