telerik RadNumericTextBox problem with spin button increment-decrement for decimal value

2 posts, 0 answers
  1. DFal
    DFal avatar
    3 posts
    Member since:
    Oct 2012

    Posted 31 Oct 2012 Link to this post

    We are using RadNumericTextBox with decimal digits allowed:(see the markup below)

    <telerik:RadNumericTextBox ID="txtSomeData" runat="server"
        Font-Names="tahoma, sans-serif" Font-Size="11px"
        MaxLength="5" MaxValue="24" MinValue="0" Width="90px"
        ShowSpinButtons="true" Type="Number" Value="0.0">
        <NumberFormat DecimalDigits="2" PositivePattern="n hours" DecimalSeparator="." AllowRounding="true" />
        <InvalidStyle ForeColor="Crimson" />
        <EnabledStyle HorizontalAlign="Center" CssClass="fieldlabelSmall" />

    The problem we are facing is, when we manually put a decimal value, while using spin button to increment/ decrement, the value wont increase/ decrease after a random number.
    e.g. type 5.2 in text box now try to decrease by clicking on down arrow(spin button), for me it wont decrease beyond 2.2
    similarly for decimal value of 2 digit, problem would occur for both increment and decrement.(for me on giving 12.44, it give problem at 8.44 on decreasing and 15.44 on increasing)

    Version Used: 2012.1.215.35
  2. DFal
    DFal avatar
    3 posts
    Member since:
    Oct 2012

    Posted 01 Nov 2012 Link to this post

    I resolved this issue by removing  MaxLength="5" from above code.
    Why we dont need to use MaxLength is explained here:

  3. DevCraft R3 2016 release webinar banner
Back to Top