This is a migrated thread and some comments may be shown as answers.

RadButton's onClientClicked event can't close current RadWindow

1 Answer 50 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 17 Nov 2013, 02:41 PM
The Live Examples:window/examples/clientsideevents
(My version is  AJAX Q3 2013 released 10/15/2013)
in "Dialog.aspx",I just replace asp Button with RadButton, the OnClientClicked does not work.
Here is "Dialog.aspx" code snippet whitch i added a  RadButton :

<table style="text-align: center; width: 250px;">
    <tr>
        <td>
            To provide an argument, fill in the value and click on "Close with argument" button
            below:<br />
            <br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
            <br />
            <asp:Button ID="Button1" runat="server" Text="Close RadWindow" OnClientClick="Close();return false;" /><br />
            <br />
            <asp:Button ID="Button2" runat="server" Text="Close with argument" OnClientClick="CloseWithArg();return false;"/>
            <br />
            RadButton1 is added by myself,but the OnClientClicked event does not work.
            <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="Close();return false;"></telerik:RadButton>
        </td>
    </tr>
</table>

1 Answer, 1 is accepted

Sort by
0
Ray
Top achievements
Rank 1
answered on 17 Nov 2013, 02:56 PM
OK,the problem has solved.i mad a mistake on RadButton's onClientClicked event. It's diffent from asp Button's onClientClick.
(btw:I can't delete this thread)
Tags
Window
Asked by
Ray
Top achievements
Rank 1
Answers by
Ray
Top achievements
Rank 1
Share this question
or