how to fire radwindow button click

2 posts, 0 answers
  1. Saadettin
    Saadettin avatar
    18 posts
    Member since:
    Jan 2012

    Posted 07 Jan 2014 Link to this post

    Hi. I use radwindow for delete process confirmation. My code like below:

    <telerik:RadWindowManager runat="server" ID="RadWindowManager1" OnClientCommand="">
                  <h3>Kayıt Silme Onayı</h3>
                    <label style="margin:10px 0 10px 0;display:block;margin:20px;">Kaydı Silmek İstediğinize Emin misiniz ?</label>
                  <div style="float:right;">
                    <asp:Button ID="btnYes" runat="server" Text="Evet" CssClass="button ino-button-edit" OnClick="btnYes_Clcik" />
                    <asp:Button ID="btnNo" runat="server" Text="Hayır" CssClass="button ino-button-delete-red" />
                  <div style="clear:both;"></div>

    When I click yes button I want delete the record. But yes button click does not fire. How can I achieve this.Thanks in advance.
  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 07 Jan 2014 Link to this post

    Hello Saadettin,

    Server controls cannot be used in the templates, because when a RadConfirm/RadAlert/RadPrompt dialog is opened this template is cloned via JavaScript, so server controls will stop working.

    What you can do is to initiate a postback from the callback function that will finish the job. Examples are available here:
    You may also find useful this article that explains the basics of the RadConfirm dialog:

    Marin Bratanov
    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 the blog feed now.
Back to Top