RadSwitch
RadCheckBox leverages the functionality of the standard checkbox.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
[ToolboxBitmap(typeof(RadSwitch), "Toolbox.Icons.Button.png")]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(CheckableButton))]
[ClientScriptResource("Telerik.Web.UI.RadSwitch", "Telerik.Web.UI.Button.RadButtonScripts.js")]
[EmbeddedSkin("Button")]
[EmbeddedSkin("Button", "Default")]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadButton))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadButton))]
public class RadSwitch : CheckableButton, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, INamingContainer, IButtonControl, IPostBackEventHandler, ICheckableButton
Inheritance: objectControlWebControlRadWebControlRadButtonBasePostBackButtonBaseCheckableButtonRadSwitch...
Implements:
Inherited Members
Constructors
public RadSwitch()
Properties
Gets the object that controls the built-in confirmation dialog properties.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadButtonConfirmSettings ConfirmSettings { get; }
Gets the On or Off toggle state based on the Checked property.
public SwitchToggleState CurrentToggleState { get; }
The Text and SingleClickText property is not applicable for RadSwitch scenario. Please use the ToggleState's ToggleStateOn and ToggleStateOff settings to control the text in the On/Off states or an external label control to provide description for the Switch control.
[Browsable(false)]
public string SingleClickText { get; }
The Text and SingleClickText property is not applicable for RadSwitch scenario. Please use the ToggleState's ToggleStateOn and ToggleStateOff settings to control the text in the On/Off states or an external label control to provide description for the Switch control.
[Browsable(false)]
public string Text { get; }
Gets the object that controls the settings of the toggle states.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SwitchToggleStatesSettings ToggleStates { get; }
Methods
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
public virtual IEnumerable<JavaScriptConverter> GetJsConverters()