RadControls for ASP.NET AJAX The following table lists significant properties and methods of the RadAjaxManager client-side object:
Name | Parameters | Return Type | Description |
|---|
ajaxRequest | string | none | Initiates a AJAX request that fires the AjaxRequest event on the server. |
ajaxRequestWithTarget | string, string | none | Simulates a postback/AJAX request initiated from a control with a specified UniqueID. |
get_ajaxSettings | none | array of objects | Returns an array of settings where each object has properties for the InitControlID and another array of UpdatedControls (see below). |
get_defaultLoadingPanelID | none | string | Returns the DefaultLoadingPanelID. |
get_enableAjax | none | boolean | True if AJAX is enabled. |
get_enableHistory | none | boolean | True if browser history is enabled during AJAX requests. |
set_ajaxSettings | array of objects | none | Sets the array of objects representing the AjaxSettings. |
set_defaultLoadingPanelID | string | none | Sets the DefaultLoadingPanelID |
set_enableAjax | boolean | none | Enables or disable AJAX for the AJAX initiator. Pass "true" to enable AJAX, "false" to have the subsequent requests performed as standard postbacks. |
set_enableHistory | boolean | none | Allows browser history during AJAX requests. Pass "true" to allow browser history during AJAX requests. |
Example:
Copy[JavaScript] get_ajaxSettings
<script type="text/javascript">
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
var settings = ajaxManager.get_ajaxSettings();
var settingsList = '';
for (setting in settings) {
var initiatingControl = settings[setting].InitControlID;
var controls = settings[setting].UpdatedControls;
var controlList = '';
for (control in controls) {
controlList += ' ' + controls[control].ControlID;
}
settingsList += '\nInitiated by: ' + initiatingControl + '\nUpdated Controls: ' + controlList;
}
alert(settingsList);
</script>