Switch Control

Official Content
This documentation is valid for:

The Switch control is a possible value for the control type property for "two-state" variables or attributes. It's a toggle switch control that enables to select between two options, whether a certain condition or value is on or off. 

It replaces the traditional check box, and it's valid for Smart Devices and Responsive Web Applications as well.

Web applications 

Only the Abstract layout supports this control.

i2016_02_12_16_50_481_png

i2016_02_17_17_02_473_png

SD apps

i2016_02_12_16_51_192_png

Switch control type SD

How to change the aesthetics of the control

For SD apps, use the Accent Color property of the Application Class

i2016_02_12_16_54_293_png

For WEB applications, check the Class property of the control and edit its properties on the Flat Theme:

i2016_02_17_17_00_001_png

i2016_02_17_17_01_092_pngProperties

Name Description
Auto Grow (SD only) Auto Grow description
Checked Value Indicates the "switch on" value
Unchecked Value Indicates the "switch off" value
ON Text (Web only) indicates the text it shows when the ON value is selected
OFF Text (Web only) indicates the text it shows when the OFF value is selected

Events

ControlValueChanged : It trigers when the value of the control changes.

Compatibility notes:

The ValueChanged event for the Switch control in IOS has been deprecated. The ControlValueChanged event should be used instead.

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.