Completed
Last Updated: 13 Aug 2021 12:23 by ADMIN
Release Q3 2013 SP1
ADMIN
Danail Vasilev
Created on: 19 Sep 2013 17:01
Category: Button
Type: Bug Report
1
FIX the clicking of RadButton when it is focused from a function triggered by onkeypress event
RadButton's clicking is triggered when the following conditions are met:

-input type="text" handles onkeypress event

-onkeypress event focuses the RadButton

-the key pressed that is handled by onkeypress event is Space or Enter

Triggering the clicking with "Space" can be workaround by setting some timeout to the focus(). For example:

ASPX:

        <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton"></telerik:RadButton>
        <input type="text" name="name" value=" " onkeypress="KeyPressed();" />

JavaScript:

        function KeyPressed() {
            setTimeout(function () {
                $find("RadButton1").focus();
            }, 200);
        }

1 comment
Puriwat
Posted on: 20 Sep 2013 02:36
Please kindly help to fix this. Work around is good but to have proper way will be better since it takes a while to figure out what wrong in Radbutton.

Thank you very much for this suggestion and workaround method.

Thanks.