Contents
Advantages of telerik AJAX framework
Licensing
Installation and deployment
DNN
AJAX Manager
AJAX Panel
AJAX Loading Panel
AJAX Timer
WebServiceManager
How-to
Performance tips and tricks
Troubleshooting
Client-side
Client-side Events
Client-side How-To
API Reference
|
|
| OnRequestSent |
Send comments on this topic. |
| See Also |
|
Client-side > Client-side Events > OnRequestSent |
|
Fired by |
This event is fired when a request is sent to the server. |
|
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 |
The javascript function for implementing the OnRequestSent event looks like this:
| ASPX/ASCX |
Copy Code |
|
<script type="text/javascript"> function onRequestSent(sender, arguments) { alert( "AJAX request has been sent."); }; </script>
<rad:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestSent="onRequestSent" 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
|