This is a migrated thread and some comments may be shown as answers.
RadNumericTextBox with MaxLength in Chrome
1 Answer 28 Views
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 12 Apr 2011, 07:44 PM
I have a RadNumericTextBox set to Type="Percent". I want the user to be able to enter numbers 0 - 100 with one decimal place. "100.0" is 5 characters so I set the MaxLength to 5. The code is below:

<telerik:RadNumericTextBox ID="textInput" Type="Percent" MaxLength="5" runat="server" />
<asp:Button ID="buttonUpdate" Text="Calculate" OnClick="ButtonUpdate_Click" runat="server" />

This works as expected in IE8 and Firefox4. But in Chrome 10 it does not work. When I click the button the focus goes to the text box because an error is detected in the input even if the number of characters entered is less than 5. If I increase the MaxLength to 20 it works in Chrome. It seems that Chrome is applying the MaxLength value to the formatted value ("2.00 %"), but IE and Firefox apply the MaxLength to the characters that the user enters. Is there a workaround for this problem?

I am using Telerik 2010 Q2.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 18 Apr 2011, 11:06 AM
Hi Patrick,

Indeed, I verified that the issue exists in the current version of the controls. Our developers are aware and they will start working on the resolution of this issue. Additionally as a small token of gratitude for your involvement I have updated your Telerik points.

Kind regards,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Input
Asked by
Patrick
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or