ComponentOne ListView for ASP.NET Web Forms
Elements / C1ListView Items / C1ListViewFlipSwitchItem
In This Topic
    C1ListViewFlipSwitchItem
    In This Topic

    The C1ListViewFlipSwitchItem allows users to choose from a boolean set of values. You can use the C1ListViewFlipSwitchItem to create a more attractive and interactive UI than with a set of radio buttons or checkbox items. The Flip Switch is also easier to use in a touch environment than a radio button or a checkbox. By default, the FlipSwitch is set to 'Yes' or 'No.'

    The C1ListViewFlipSwitchItem will resemble the following image:

    The markup used to create the C1ListViewFlipSwitchItem resembles the following:

    <cc1:C1ListViewFlipSwitchItem ID="AllDayInput" LabelText="AllDay" ONMessage="Yes" ONValue="true" OFFMessage="No" OFFValue="false"></cc1:C1ListViewFlipSwitchItem>

    Note that for the Flip Switch, you set both an ON or OFF Message and Value. These are your Boolean values, and you can customize them to reflect any pair of options you wish to use.

    See Also