RadAjax for ASP.NET

OnResponseEnd Send comments on this topic.
See Also
Client-side > Client-side Events > OnResponseEnd

Glossary Item Box

 

Fired by

This event is fired when a response from the server is processed.

Arguments

sender - this is the instance of the client-side RadAjaxManager/RadAjaxPanel object
arguments
     - arguments.EventTarget -  the UniqueID of the element that had raised the request
     - arguments.EventArgument -  the second parameter of the original __doPostback function
     - arguments.EventTargetElement - an instance of the client-side object that had raised the callback request

Can be canceled

No

Example

In the example shown below, the JavaScript function is defined in the html form. To execute them you should then set the corresponding ClientEvent property to the  name of the JavaScript function.

The javascript function for implementing the OnReponseEnd event looks like this:

ASPX/ASCX Copy Code
<script type="text/javascript">
function onResponseEnd(sender, arguments)
{
     alert( 'Callback request is completed. Response is processed.');
};
<rad:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnResponseEnd="onResponseEnd"
   
Height="200px" Width="300px">
</
rad:RadAjaxPanel>
 
Remarks

Telerik RadAjax controls provide client events which allow you to execute JavaScript code on the client at different stages of the AJAX request. This functionality gives you more flexibility in completing complex tasks in your project.

To implement this functionality, you need to define the custom JavaScript functions you want to use, and then call them from code-behind using the ClientEvents property of the control.

See Also