CheckBoxProperties.ToggleSwitchDisplayMode Property
Gets or sets a value specifying the check box display mode.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(ToggleSwitchDisplayMode.Never)]
public ToggleSwitchDisplayMode ToggleSwitchDisplayMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ToggleSwitchDisplayMode | Never | One of the ToggleSwitchDisplayMode values. |
Available values:
Name | Description |
---|---|
Never | Never displays a check box as a toggle switch. |
Auto | A check box is displayed as a toggle switch on touch devices and as a regular check box - on other devices. |
Always | A check box is always displayed as a toggle switch. |
Remarks
The ToggleSwitchDisplayMode property allows specifying the check box display mode.
- ToggleSwitchDisplayMode.Always - Displays a check box as a toggle switch.
- ToggleSwitchDisplayMode.Auto - Displays a check box as a toggle switch for mobile users (MacOS, Android, Windows).
- ToggleSwitchDisplayMode.Never - Never displays a check box as a toggle switch.
Note
Online Demos Refer to the ASPxCheckBox - Features (Web Forms) online demo to review how the ASPxCheckBox operates in toggle switch mode.
See Also