OnAjaxSettingCreated
The AjaxSettingCreated event occurs after an AjaxSetting is added to the AjaxSettings collection of the AjaxManager.
The event can be triggered by the AjaxSettings configured at design-time as they are instantiated, or at run-time after AddAjaxSetting() is called. The event cannot be cancelled.
The AjaxSettingCreated event handler receives two arguments:
-
The
RadAjaxManagercontrol that owns theAjaxSettingscollection to which the setting is added. This argument is of type object, but can be cast to theRadAjaxManagertype. -
And
AjaxSettingCreatedEventArgsobject with the following properties:-
Initiator—A reference to the object that triggered the AJAX request. -
Updated—A reference to the object that will be updated by the AJAX request. -
UpdatePanel—A reference to the underlying MS AJAX UpdatePanel.
-
The following example demonstrates how to use the OnAjaxSettingCreated event.
protected void RadAjaxManager1_AjaxSettingCreated(object sender, AjaxSettingCreatedEventArgs e)
{
RadAjaxManager1.Alert("AjaxSetting Created for initiator " + e.Initiator.ClientID
+ " and updated control " + e.Updated.ClientID);
}