RadNumericTextBox with MaxLength in Chrome

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    10 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    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.
  2. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 18 Apr 2011 Link to this post

    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.

Back to Top