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

Represents a base class for the image editor dialog controls.

Definition

Namespace:Telerik.Web.UI.ImageEditor

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class ImageEditorDialog : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor

Inheritance: objectControlWebControlImageEditorDialog

Derived Classes: AddTextBrightnessContrastCropDrawCircleDrawRectangleEmptyToolExportFlipHueSaturationInsertImageLineOpacityPencilPrintResizeRotateSaveZoom...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)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.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(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

Creates an instance of the ImageEditorDialog class.

C#
public ImageEditorDialog()

Creates an instance of the ImageEditorDialog class.

C#
public ImageEditorDialog(string skin, RadImageEditor parentImageEditor)
Parameters:skinstring

The skin of the parent ImageEditor.

parentImageEditorRadImageEditor

The parent image editor which loads the dialog.

Properties

Gets the name of the Dialog.

C#
public abstract string DialogName { get; }

Gets or sets a value indicating where the image editor will look for its dialogs.

C#
public string ExternalDialogsPath { get; }
Property Value:

A relative path to the dialogs location. For example: "~/controls/RadImageEditorDialogs/".

If specified, the ExternalDialogsPath property will allow you to customize and load the image editor dialogs from normal ASCX files.

Gets or sets the ParentImagEditor control which loads the DialogControl.

C#
protected RadImageEditor ParentImageEditor { get; set; }

Gets the script file associated with the dialog.

C#
public abstract string ScriptUrl { get; }

Gets or sets the Skin of the ParentImageEditor control.

C#
protected string Skin { get; set; }
C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets the Title of the Dialog.

C#
public abstract string Title { get; }

Methods

Searches the current dialog for child RadControls and sets their Skin properties to the same value as that of the ParentImageEditor.

C#
protected virtual void ApplySkin(Control target, string skin)
Parameters:targetControl

The parent control where to search for child RadControls. In our case this is the dialog.

skinstring

The skin to apply to the child RadControls.

C#
protected override void CreateChildControls()

Overrides: Control.CreateChildControls()

Searches for a child control within the dialog's Controls collection.

C#
public Control FindControlRecursive(string id)
Parameters:idstring

The ID of the control to find.

Returns:

Control

Instance to the control found. If the control is not found null is returned.

Gets the HTML content to load within the dialog. It is loaded from .ASCX file.

C#
protected string GetResourceContent(string name)
Parameters:namestring

The name of the ASCX file.

Returns:

string

The HTML content that will be loaded within the dialog.

Reports back if the dialog should be rendered using a Touch skin

C#
protected bool IsTouchSkin()
Returns:

bool

True if Touch skin is used

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

Overrides: Control.OnInit(EventArgs)

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

Overrides: Control.OnPreRender(EventArgs)

C#
protected override void Render(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.Render(HtmlTextWriter)

Renders the script HTML tag with the script of the control.

C#
protected virtual void RenderScript(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The writer that writes the HTML tag.

Renders the localized title of the dialog.

C#
protected virtual void RenderTitle(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The writer that will write out the text.

C#
public void SetChildControlRenderMode(RadDataBoundControl control)
Parameters:controlRadDataBoundControl
C#
public void SetChildControlRenderMode(RadWebControl control)
Parameters:controlRadWebControl
C#
public void SetChildControlRenderMode(string id)
Parameters:idstring

Sets child controls properties. Override this method if you want to configure the child controls, such as setting the localized strings.

C#
protected virtual void SetChildrensProperties()