New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Telerik.Web.UI.RadAjaxControl

Base class for Telerik.Web.UI.RadAjaxManager and Telerik.Web.UI.RadAjaxPanel holding base properties available for both controls.

Inheritance Hierarchy

  • System.Object
  • System.Web.UI.Control
  • System.Web.UI.WebControls.WebControl
  • Telerik.Web.UI.RadAjaxControl : IPostBackEventHandler

Properties

ClientEvents AjaxClientEvents

Gets a reference to , which holds properties for setting the client-side events

ClientIDMode ClientIDMode

This property is overridden in order to support controls which implement INamingContainer. The default value is changed to "AutoID".

EnableAJAX Boolean

Gets or sets if the ajax is enabled. If disabled all ajaxified controls will cause postback.

EnableAriaSupport Boolean

When set to true enables support for WAI-ARIA

EnableEmbeddedScripts Boolean

Gets or sets the value, indicating whether to render script references to the embedded scripts or not.

Remarks

If EnableEmbeddedScripts is set to false you will have to register the needed Scripts files by hand.

EnableHistory Boolean

Enables browser back/forward buttons state (browser history). Please, review the RadAjax "Changes and backwards compatibility" - "Back and Forward buttons" article for more info.

EnablePageHeadUpdate Boolean

Gets or sets if the page html head tag will be updated during the ajax request.

IsAjaxRequest Boolean

Gets if the requst is ajax or full postback.

PostBackControls String[]

String array with filter strings. Ajax trigger control whose ID matches one of these values will perform a synchronous request.

RequestQueueSize Int32

By design ASP.NET AJAX Framework cancels the ongoing ajax request if you try to initiate another one prior to receiving the response for the first request. By setting the RequestQueueSize property to a value greater than zero, you are enabling the queuing mechanism of RadAjax that will allow you to complete the ongoing request and then initiate the pending requests in the control queue.

Remarks

If the queue is full (queue size equals RequestQueueSize), an attempt for new ajax request will be discarded.

ResponseScripts StringCollection

Gets the response scripts which represent JavaScript code that will be passed to the client and executed.

RestoreOriginalRenderDelegate Boolean

RadAjax for ASP.NET has some limitations when running in medium trust. To make it work you should change the base type of your pages that use radjax from to . However DNN module controls Inherit from Entities.Modules.PortalModuleBase and thus you cannot simply change the page's base class. For such cases you should use the new property RestoreOriginalRenderDelegate. By default it is true, if you work in DNN or medium trust, you should set that to false.

ShowLoadingPanelForPostBackControls String[]

Determines whether the loading panel will be shown during a regular postback. This will work only if the loading panel is attached to the ajax control. Default value is false (disabled).

Methods

Alert

Displays an alert message at client-side.

Remarks

This is the easiest way to show a message, generated from the server, on the client in a message box.Note: Special characteres are not escaped.

Returns

System.Void None.

FocusControl

Sets focus to the specified web control after the AJAX Request is finished.

Returns

System.Void

FocusControl

Sets focus to the specified web control after the AJAX Request is finished.

Returns

System.Void

GetAjaxEventReference

Gets client side code which raises an AjaxRequest event in either AJAX Manager or AJAX Panel.

Returns

System.String

Redirect

Redirects the page to another location.

Remarks

This method is usually used in the AJAX event handler instead of Response.Redirect(). It provides the only way to redirect to a page which does not contain any AJAX control at all.

Returns

System.Void None.