Volume: Mute
|
The user can specify as many ToggleStates as needed. This RadButton control has
four states. The state changes when the button is clicked.
|
Play
|
The user can fully customize the RadButton control when used as CheckBox or RadioButton.
Simply add two ToggleState objects to the RadButtonToggleStates collection, and
set Selected="true" to one of the ToggleStates. The state having
Selected="true" will be applied when the checkbox is checked (Checked="true").
|
Yes
|
Different text can be used for different ToggleStates. Set the Text property of
the RadButtonToggleState object, and the RadButton will have new text when the state
is changed. If the ToggleState does not have Text specified, the value of the RadButton's
Text property will be set.
|
Next
|
By setting the RadButtonToggleState's ImageUrl property, you can
show custom image, when the RadButton changes ToggleState. Setting the HoveredImageUrl
property will cause a different image to be shown when the mouse is over the control.
Width and Height properties must be set in order
for the image to be shown.
|
Unchecked
|
The ToggleButton could be rendered as a three state checkbox. Set the ToggleType
property to "CustomToggle". After that add three <telerik:RadButtonToggleState
inner-tags and specify icons for each of them by setting respectively the PrimaryIconCssClass
and/or SecondaryIconCssClass properties to one of the following
embedded classes: rbToggleCheckbox, rbToggleCheckboxFilled
and rbToggleCheckboxChecked. The rbToggleCheckbox class applies
to the standard looking empty checkbox element, rbToggleCheckboxFilled will render
a filled checkbox element and the rbToggleCheckboxChecked will display a checked
checkbox.
|
RadioButton1
|
The ToggleType property specifies how the ToggleButton will be
rendered on the page: as a CheckBox, as a Radio
or as a CustomToggle button. If a Radio ToggleType mode is chosen,
the developer could also set the GroupName property, which specifies
the name of the group that the radio button belongs to. Use this property to specify
a grouping of radio buttons to create a mutually exclusive set of controls.
|
RadioButton2
|
Use the SecondaryIconCssClass property to show the icon of the
radio/checkbox elements on the right side.
Note that RadioButton1 (above) and RadioButton2 belong to the GroupName named "Radio"
and are self exclusive, regardless of their text and icon layout.
|
Remove
|
It is possible to use the provided embedded icons when the ToggleType
property is set to either CheckBox or Radio. For
more information see the Embedded Icons demo which lists all available embedded icons.
|
|
This demo shows how to render a CustomToggle button with embedded icons placed on the right side of the control.
|