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

A control used to define a global skin for the RadControls on the page as well as granular settings for particular controls.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[ToolboxBitmap(typeof(RadSkinManager), "Toolbox.Icons.SkinManager.png")]
[TelerikToolboxCategory("Miscellaneous")]
public class RadSkinManager : Control, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, ISkinnableControl, IControl

Inheritance: objectControlRadSkinManager

Implements: IComponentIControlIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorISkinnableControlIUrlResolutionService...

Inherited Members Control.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.LoadViewState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.SaveViewState()Control.Render(HtmlTextWriter)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.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.TrackViewState()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.EnableThemingControl.IsChildControlStateClearedControl.SkinIDControl.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 RadSkinManager()

Fields

C#
protected Dictionary<string, EmbeddedSkinAttribute> skinAttributes

Properties

Gets or sets a value indicating whether skinning should be enabled or not.

C#
public virtual bool Enabled { get; set; }

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

C#
public bool EnableEmbeddedBaseStylesheet { get; set; }

Implements: ISkinnableControl.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 script references to the embedded scripts or not.

C#
public bool EnableEmbeddedScripts { get; set; }

Implements: ISkinnableControl.EnableEmbeddedScripts

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

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

C#
public bool EnableEmbeddedSkins { get; set; }

Implements: ISkinnableControl.EnableEmbeddedSkins

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

C#
protected bool IsRenderModeSet { get; }

Specifies the persistance key that will be used by the control.

C#
public virtual string PersistenceKey { get; set; }

Specifies the skin manager persistance mode.

C#
public virtual RadSkinManagerPersistenceMode PersistenceMode { 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 RenderMode RenderMode { get; set; }

Implements: ISkinnableControl.RenderMode

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

Returns resolved RenderMode should the original value was Auto

C#
public RenderMode ResolvedRenderMode { get; }

Implements: ISkinnableControl.ResolvedRenderMode

Gets or sets a value indicating whether Skin chooser should be rendered in run-time.

C#
public virtual bool ShowChooser { get; set; }

"Specifies the skin that will be used by the control"

C#
public virtual string Skin { get; set; }

Implements: ISkinnableControl.Skin

Gets a collection of all skins references available in the control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SkinReferenceCollection Skins { get; }
C#
protected bool SupportsAdaptiveRendering { get; }
C#
protected bool SupportsLightweightRendering { get; }
C#
protected bool SupportsNativeRendering { get; }
C#
protected bool SupportsRenderingMode { get; }

Gets a collection of TargetControl objects that allows for specifying the objects for which tooltips will be created on the client-side.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public TargetControlCollection TargetControls { get; }
Property Value:

Gets a collection of TargetControl objects that allows for specifying the objects for which tooltips will be created on the client-side.

Use the TargetControls collection to programmatically control which objects should be tooltipified on the client-side.

Methods

Applies a provided skin to a target control.

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

The RadControl which will be skinned.

skinstring

The string name of the skin.

Applies the current skin on a target control.

C#
public void ApplySkin(Control target)
Parameters:targetControl
C#
protected bool CanRenderInMode(RenderModeBrowserAdaptor browser, RenderMode mode)
Parameters:browserRenderModeBrowserAdaptormodeRenderModeReturns:

bool

C#
protected void ChangeSkin(string skinName)
Parameters:skinNamestring
C#
protected virtual void FillSkins(RadComboBox chooser)
Parameters:chooserRadComboBox

A static method used to return a reference to the RadSkinManager on the current page. Usually used when the control needs to be used from an inner level of the page (user control, content page, etc.)

C#
public static RadSkinManager GetCurrent(Page page)
Parameters:pagePage

The current Page object.

Returns:

RadSkinManager

A reference to the currently avaialble RadSkinManager.

Gets a reference to the RadComboBox control representing the skin chooser.

C#
public RadComboBox GetSkinChooser()
Returns:

RadComboBox

The RadComboBox which shows the options for skins to apply.

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

Overrides: Control.OnInit(EventArgs)

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

Overrides: Control.OnLoad(EventArgs)

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

Overrides: Control.OnPreRender(EventArgs)

Raises the SkinChanged event.

C#
protected virtual void OnSkinChanged(SkinChangedEventArgs args)
Parameters:argsSkinChangedEventArgs

A SkinChangedEventArgs that contains the event data.

Raises the SkinChanging event.

C#
protected virtual void OnSkinChanging(SkinChangingEventArgs args)
Parameters:argsSkinChangingEventArgs

A SkinChangingEventArgs that contains the event data.

C#
protected RenderMode ResolveRenderMode()
Returns:

RenderMode

Events

Occurs after the skin has been changed.

C#
public event RadSkinManager.SkinChangedDelegate SkinChanged

Occurs when the skin is about to be changed.

C#
public event RadSkinManager.SkinChangingDelegate SkinChanging