RadAjaxControl
Base class for RadAjaxManager and RadAjaxPanel holding base properties available for both controls.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[RequiredScript(typeof(Core))]
[ClientScriptResource("Telerik.Web.UI.RadAjaxControl", "Telerik.Web.UI.Ajax.Ajax.js")]
public abstract class RadAjaxControl : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackEventHandler
Inheritance: objectControlWebControlRadAjaxControl
Derived Classes:
Implements:
Inherited Members
Properties
Gets a reference to AjaxClientEvents, which holds properties for setting the RadAjaxControl client-side events
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual AjaxClientEvents ClientEvents { get; }
This property is overridden in order to support controls which implement INamingContainer. The default value is changed to "AutoID".
public override ClientIDMode ClientIDMode { get; set; }
Overrides:
Gets or sets if the ajax is enabled. If disabled all ajaxified controls will cause postback.
public virtual bool EnableAJAX { get; set; }
Determines if the Ajax is enabled.
When set to true enables support for WAI-ARIA
public bool EnableAriaSupport { get; set; }
Gets or sets the value, indicating whether to render script references to the embedded scripts or not.
public virtual bool EnableEmbeddedScripts { get; set; }
If EnableEmbeddedScripts is set to false you will have to register the needed Scripts files by hand.
Enables browser back/forward buttons state (browser history). Please, review the RadAjax "Changes and backwards compatibility" - "Back and Forward buttons" article for more info.
public virtual bool EnableHistory { get; set; }
Gets or sets if the page html head tag will be updated during the ajax request.
public virtual bool EnablePageHeadUpdate { get; set; }
Determines if the page html head tag will be updated during the ajax request.
Gets if the requst is ajax or full postback.
[Browsable(false)]
public virtual bool IsAjaxRequest { get; }
Determines if the request is ajax; otherwise its full postback
String array with filter strings. Ajax trigger control whose ID matches one of these values will perform a synchronous request.
[TypeConverter(typeof(StringArrayConverter))]
public virtual string[] PostBackControls { get; set; }
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.
public int RequestQueueSize { get; set; }
The default value is 0 (queuing disabled).
If the queue is full (queue size equals RequestQueueSize), an attempt for new ajax request will be discarded.
Gets the response scripts which represent JavaScript code that will be passed to the client and executed.
[Browsable(false)]
public virtual StringCollection ResponseScripts { get; }
The response scripts.
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 Page to RadAjaxPage. 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.
public virtual bool RestoreOriginalRenderDelegate { get; set; }
By default it is true, if you work in DNN or medium trust, you should set that to false.
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).
public virtual bool ShowLoadingPanelForPostBackControls { get; set; }
Methods
Displays an alert message at client-side.
public void Alert(string message)
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.
Sets focus to the specified web control after the AJAX Request is finished.
Sets focus to the specified web control after the AJAX Request is finished.
protected virtual void OnAjaxRequest(AjaxRequestEventArgs args)
protected virtual void OnAjaxSettingCreated(AjaxSettingCreatedEventArgs args)
protected virtual void OnAjaxSettingCreating(AjaxSettingCreatingEventArgs args)
Redirects the page to another location.
public void Redirect(string location)
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.
Events
public event RadAjaxControl.AjaxRequestDelegate AjaxRequest
public event RadAjaxControl.AjaxSettingCreatedDelegate AjaxSettingCreated
public event RadAjaxControl.AjaxSettingCreatingDelegate AjaxSettingCreating
public event RadAjaxControl.CommandEventDelegate Command