In Q3 2013 the clicking of default RadButton is not raised when Enter key is pressed inside a password TextBox

Thread is closed for posting
1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 18 Oct 2013 Link to this post

    This issue is fixed in Q1 2013 SP1.

    In Q3 2013 the clicking of RadButton is not raised when Enter key is pressed inside a password TextBox and the RadButton is set to be the default button for the form (Link to feedback portal).

    The issue will be fixed for the upcoming Q3 2013 SP1. For the time being the following workaround can be used:

    This is a common setup that will cause the problem described above:
    <form id="form1" runat="server" defaultbutton="RadButton1">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <asp:TextBox runat="server" ID="TextBox1" TextMode="Password" />
        <telerik:RadButton runat="server" ID="RadButton1" Text="Submit" />
    </form>
    This function override should be placed at the end of the page to fix the issues:
    <script type="text/javascript">
        Telerik.Web.UI.RadButton.prototype._isInputTypeText = function (element) {
            var nodeName = element.nodeName,
            type = element.type;
            if (nodeName != "INPUT" || !type) return false;
            return type == "text" || type == "password" || type == "email" || type == "number" || type == "url" || type == "search" || type == "tel";
        }
    </script>
Back to Top