This example illustrates how to use the client-side API of RadAjaxPanel to implement a simple text editor.
The events used here are: OnRequestStart and OnResponseEnd.
The event handler functions for these are defined as follows:
<
ClientEvents
OnResponseEnd
=
"OnResponseEnd"
OnRequestStart
=
"OnRequestStart"
></
ClientEvents
>
The OnRequestStart event fires just before the XmlHttpRequest is sent to the server. In this example, the OnRequestStart event is used to disable controls on the form and display status information. Moreover, this example uses the OnRequestStart event to prompt the user to cancel the AJAX request if they wish to.
The OnResponseEnd event fires when the HTML on the page has been updated by an AJAX request. This example uses the OnResponseEnd event to update status information and re-enable form controls to allow the user to continue their work.