Calling a server-side method OnClose of a RadWindow

3 posts, 0 answers
  1. Inbal
    Inbal avatar
    3 posts
    Member since:
    Sep 2011

    Posted 19 Sep 2011 Link to this post

    Hi,

    How can I call a server-side method immediately after closing a RadWindow? (like you can call a client-side method using "OnClientClose").
    Is there something similar for server-side methods?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Sep 2011 Link to this post

    Hello Inbal,

    You can call a server side OnAjaxRequest event from OnClientClose event.
    aspx:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                onajaxrequest="RadAjaxManager1_AjaxRequest">
    </telerik:RadAjaxManager>
    JS:
    <script type="text/javascript">
    function OnClientClose(sender, args)
     {
       var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
       ajaxManager.ajaxRequest(args);
     }
    </script>

    Thanks,
    Princy.
  3. Inbal
    Inbal avatar
    3 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    Thank you Princy!
    It worked for me.
Back to Top