New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

RadDialogOpener class

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[EmbeddedSkin("FormDecorator")]
[RequiredScript(typeof(jQueryPlugins))]
[ToolboxBitmap(typeof(RadDialogOpener), "Toolbox.Icons.DialogOpener.png")]
[ClientScriptResource("Telerik.Web.UI.RadDialogOpener", "Telerik.Web.UI.Dialogs.RadDialogOpenerScripts.js")]
public class RadDialogOpener : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, INamingContainer

Inheritance: objectControlWebControlRadWebControlRadDialogOpener

Derived Classes: DialogOpener

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorINamingContainerIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadDialogOpener()

Properties

Gets or sets an additional querystring appended to the dialog URL.

C#
[ClientControlProperty]
public string AdditionalQueryString { get; set; }
Property Value:

A String, appended to the dialog URL

Get/Set the animation effect of the window

C#
public WindowAnimation Animation { get; set; }

Gets the DialogDefinitionDictionary, containing the DialogDefinitions of the managed dialogs.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public DialogDefinitionDictionary DialogDefinitions { get; }
Property Value:

TODO

TODO

C#
[PersistenceMode(PersistenceMode.Attribute)]
public string DialogParametersProviderTypeName { get; set; }

Gets or sets the location of a CSS file, that will be added in the dialog window. If you need to include more than one file, use the CSS @import url(); rule to add the other files from the first. This property is needed if you are using a custom skin. It allows you to include your custom skin CSS in the dialogs, which are separate from the main page.

C#
public string DialogsCssFile { get; set; }

Gets or sets the location of a JavaScript file, that will be added in the dialog window. If you need to include more than one file, you will need to combine the scripts into one first. This property is needed if want to override some of the default functionality without loading the dialog from an external ascx file.

C#
public string DialogsScriptFile { get; set; }

Gets or sets the value, indicating whether to render the skin CSS files during Ajax requests

C#
public override bool EnableAjaxSkinRendering { get; set; }

Overrides: RadWebControl.EnableAjaxSkinRendering

Implements: ISkinnableControl.EnableAjaxSkinRendering

If EnableAjaxSkinRendering is set to false you will have to register the needed control base CSS file by hand when adding/showing the control with Ajax.

Gets or sets the value, indicating whether to render the link to the embedded base stylesheet of the control or not.

C#
public override bool EnableEmbeddedBaseStylesheet { get; set; }

Overrides: RadWebControl.EnableEmbeddedBaseStylesheet

If EnableEmbeddedBaseStylesheet is set to false you will have to register the needed control base CSS file by hand.

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

C#
public override bool EnableEmbeddedScripts { get; set; }

Overrides: RadWebControl.EnableEmbeddedScripts

Implements: ISkinnableControl.EnableEmbeddedScripts

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

Gets or sets the value, indicating whether to render links to the embedded skins or not.

C#
public override bool EnableEmbeddedSkins { get; set; }

Overrides: RadWebControl.EnableEmbeddedSkins

Implements: ISkinnableControl.EnableEmbeddedSkins

If EnableEmbeddedSkins is set to false you will have to register the needed CSS files by hand.

When set to True, tells the dialog opener to use RadScriptManager and RadStyleSheetManager when loading an .ascx dialog file.

C#
[ClientControlProperty]
public bool EnableTelerikManagers { get; set; }
C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
[ClientControlProperty]
public string HandlerUrl { get; set; }

Gets or sets the localization language for the user interface.

C#
[Browsable(true)]
[Bindable(true)]
[Obsolete("This property is not used. Set the language from the dialog parameters.")]
public string Language { get; set; }
Property Value:

The localization language for the user interface. The default value is en-US.

Gets or sets the client-side script that gets executed when the dialog closing event is raised

C#
[ClientControlEvent]
[ClientPropertyName("close")]
public string OnClientClose { get; set; }

Gets or sets the client-side script that gets executed when the dialog opening event is raised

C#
[ClientControlEvent]
[ClientPropertyName("open")]
public string OnClientOpen { get; set; }

Specifies the rendering mode of the control. Setting the mode to Lightweight will yield HTML 5/CSS 3 html and css.

C#
public override RenderMode RenderMode { get; set; }

Overrides: RadWebControl.RenderMode

Implements: ISkinnableControl.RenderMode

Lightweight rendering mode might change the outlook of the component in some older browsers that don't support CSS3/HTML5.

Gets or sets the skin name for the control user interface.

C#
[TypeConverter("Telerik.Web.Design.SkinTypeConverter, Telerik.Web.Design, Version=2026.3.812.462, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
public override string Skin { get; set; }
Property Value:

A string containing the skin name for the control user interface. The default is string.Empty.

Overrides: RadWebControl.Skin

Implements: ISkinnableControl.Skin

If this property is not set, the control will render using the skin named "Default". If EnableEmbeddedSkins is set to false, the control will not render skin.

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets a value, indicating if classic windows will be used for opening a dialog.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
[ClientControlProperty]
public bool UseClassicDialogs { get; set; }
Property Value:

A boolean, indicating if classic windows will be used for opening a dialog

When set to true, the RadDialogOpener shows a dialog similar to the ones opened by window.open and window.showModalDialog;

A read-only property that returns the RadWindow instance used in the RadDialogOpener control.

C#
public RadWindow Window { get; }

Methods

C#
protected override void CreateChildControls()

Overrides: Control.CreateChildControls()

C#
protected override Style CreateControlStyle()
Returns:

Style

Overrides: WebControl.CreateControlStyle()

C#
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeClientEvents(IScriptDescriptor)

C#
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeClientProperties(IScriptDescriptor)

C#
protected string GetEncryptedProviderTypeName()
Returns:

string

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnLoad(EventArgs)