Event not fire when I press enter key instead of clicking on a RadButton

2 posts, 0 answers
  1. Hee
    Hee avatar
    25 posts
    Member since:
    Sep 2011

    Posted 24 Apr 2013 Link to this post

    <script type="text/javascript">
            function pageLoad() {
                $find('<%= RadButtonClickTest.ClientID %>').focus();
            }
     
            function RadButtonClickTest_OnClientClicking(sender, args) {
                args.set_cancel(!confirm("Are you sure cancel?"));
            }
    </script>

    <div>
            Has fired server side event?: <asp:Label ID="LabelTest" runat="server" Text="No"></asp:Label
            <telerik:RadButton ID="RadButtonClickTest" runat="server" Skin="Simple" Text="Cancel" UseSubmitBehavior="false" TabIndex="1" OnClientClicking="RadButtonClickTest_OnClientClicking" OnClick="RadButtonClickTest_Click" />
    </div>


    We updated telerik version to v2013.1.417 for our site.
    And then we got big problems with RadButton.
    When I press enter key instead of clicking on a RadButton, there are two problems like below.

    1. If I select "OK" at confirm window, it doesn't fire server side event even if AutoPostBack=true.
    2. If I select "Cancel" at confirm window, first time, it is work successfully. But if I press enter key on a RadButton again, Client side event does not fire and server side event fire directly.

    I don't understand this problem. You can download full test source from below link.
    http://www.mediafire.com/?80q15q2hk6surq4
    Please refer to it.
    Our site have a lot of RadButton. So this problem is so big issue.
    What's the problem with RadButton?

    Thanks
    Hee
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 25 Apr 2013 Link to this post

    Hello Hee,

    This seems to be an issue with the control. I have raised its priority and logged it as a feedback item here, so that you can monitor, comment or vote on it.

    As a small token of gratitude for reporting this issue I have updated your Telerik points.

    Kind regards,
    Danail Vasilev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top