Edit this page

RadAjaxManager Object

Table 1 lists significant properties and methods of the RadAjaxManager client-side object. Example 1 shows how to get the Ajax settings using get_ajaxSettings.

 

Name Parameters Return Type Description
ajaxRequest string none Initiates an AJAX request that fires theAjaxRequestevent 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 Example 1 ).
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 1: Using 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>

See Also