RadAjax for ASP.NET AJAX

RadControls for ASP.NET AJAX

The OnResponseEnd client-side event handler is called when a request is received from the server. The event can not be canceled.

Two parameters are passed to the event handler with the following methods:

  • sender - the instance of the client-side RadAjaxManager/RadAjaxPanel object.

  • eventArgs has the following methods:

    • get_eventTarget() gets the UniqueID of the element that had raised the request.

    • get_eventArgument() gets the string passed in the initial AJAX request.

    • get_eventTargetElement() gets the instance of the client-side object that raised the AJAX request

The following example uses displays the control that initiated the request.

CopyASPX
<script type="text/javascript">
    function responseEnd(sender, eventArgs) {
        alert('Response end initiated by: ' + eventArgs.get_eventTarget());
    }
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <ClientEvents OnResponseEnd="responseEnd" />
</telerik:RadAjaxManager>

See Also

Other Resources