RadControls for ASP.NET AJAX The AjaxSettingCreated event occurs after an AjaxSetting is
added to the RadAjaxManager AjaxSettings collection. 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 canceled.
The AjaxSettingCreated event handler receives two
arguments:
The RadAjaxManager control that owns the
AjaxSettings collection that the setting is being added to. This argument
is of type object, but can be cast to the
RadAjaxManager type.
And AjaxSettingCreatedEventArgs object 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.
Example
CopyC#
protected void RadAjaxManager1_AjaxSettingCreated(object sender, AjaxSettingCreatedEventArgs e)
{
RadAjaxManager1.Alert("AjaxSetting Created for initiator " + e.Initiator.ClientID
+ " and updated control " + e.Updated.ClientID);
}
CopyVB.NET
Protected Sub RadAjaxManager1_AjaxSettingCreated(ByVal sender As Object, ByVal e As AjaxSettingCreatedEventArgs)
RadAjaxManager1.Alert("AjaxSetting Created for initiator " + e.Initiator.ClientID + " and updated control " + e.Updated.ClientID)
End Sub