RadSkinManager
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:
[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:
Inherited Members
Constructors
public RadSkinManager()
Fields
protected Dictionary<string, EmbeddedSkinAttribute> skinAttributes
Properties
Gets or sets a value indicating whether skinning should be enabled or not.
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.
public bool EnableEmbeddedBaseStylesheet { get; set; }
Implements:
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.
public bool EnableEmbeddedScripts { get; set; }
Implements:
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.
public bool EnableEmbeddedSkins { get; set; }
Implements:
If EnableEmbeddedSkins is set to false you will have to register the needed CSS files by hand.
protected bool IsRenderModeSet { get; }
Specifies the persistance key that will be used by the control.
public virtual string PersistenceKey { get; set; }
Specifies the skin manager persistance mode.
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.
public RenderMode RenderMode { get; set; }
Implements:
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
public RenderMode ResolvedRenderMode { get; }
Implements:
Gets or sets a value indicating whether Skin chooser should be rendered in run-time.
public virtual bool ShowChooser { get; set; }
"Specifies the skin that will be used by the control"
public virtual string Skin { get; set; }
Implements:
Gets a collection of all skins references available in the control.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SkinReferenceCollection Skins { get; }
protected bool SupportsAdaptiveRendering { get; }
protected bool SupportsLightweightRendering { get; }
protected bool SupportsNativeRendering { get; }
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.
[PersistenceMode(PersistenceMode.InnerProperty)]
public TargetControlCollection TargetControls { get; }
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 the current skin on a target control.
protected bool CanRenderInMode(RenderModeBrowserAdaptor browser, RenderMode mode)
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.)
public static RadSkinManager GetCurrent(Page page)
The current Page object.
Returns:A reference to the currently avaialble RadSkinManager.
Gets a reference to the RadComboBox control representing the skin chooser.
public RadComboBox GetSkinChooser()
The RadComboBox which shows the options for skins to apply.
protected void InitializeRenderMode()
Raises the SkinChanged event.
protected virtual void OnSkinChanged(SkinChangedEventArgs args)
A SkinChangedEventArgs that contains the event data.
Raises the SkinChanging event.
protected virtual void OnSkinChanging(SkinChangingEventArgs args)
A SkinChangingEventArgs that contains the event data.
Events
Occurs after the skin has been changed.
public event RadSkinManager.SkinChangedDelegate SkinChanged
Occurs when the skin is about to be changed.
public event RadSkinManager.SkinChangingDelegate SkinChanging