RadButton's onClientClicked event can't close current RadWindow

2 posts, 0 answers
  1. Ray
    Ray avatar
    8 posts
    Member since:
    Jul 2011

    Posted 17 Nov 2013 Link to this post

    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>

  2. Ray
    Ray avatar
    8 posts
    Member since:
    Jul 2011

    Posted 17 Nov 2013 Link to this post

    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)
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top