This is a migrated thread and some comments may be shown as answers.

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

1 Answer 137 Views
Input
This is a migrated thread and some comments may be shown as answers.
DFal
Top achievements
Rank 1
DFal asked on 31 Oct 2012, 09:14 AM
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" />
</telerik:RadNumericTextBox>

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

1 Answer, 1 is accepted

Sort by
0
DFal
Top achievements
Rank 1
answered on 01 Nov 2012, 11:58 AM
I resolved this issue by removing  MaxLength="5" from above code.
Why we dont need to use MaxLength is explained here: http://www.telerik.com/community/forums/aspnet-ajax/input/radnumerictextbox-w-maxlength-and-step-0-1-fails-to-increment-decrement.aspx

Tags
Input
Asked by
DFal
Top achievements
Rank 1
Answers by
DFal
Top achievements
Rank 1
Share this question
or