New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Right-to-Left Support

The Switch fully supports right-to-left (RTL) language locales (Figure 1). In order to turn on the RTL support, you should set dir=rtl to the html or body element or at least to its parent element (Figure 1). You can also use the direction:rtl CSS property.

Figure 1: Switch in RTL mode.

Switch-rtl

Example 1: Set the "direction: rtl" style to the Switch's wrapper element in order to enable the RTL support for the control.

<div style="direction: rtl;">
    <telerik:RadLabel runat="server" ID="RadLabel1" AssociatedControlID="RadSwitch1" Text="پذیرفتن">
    </telerik:RadLabel>
    <telerik:RadSwitch runat="server" ID="RadSwitch1" Checked="true" AutoPostBack="false">
        <ToggleStates>
            <ToggleStateOff Text="نه" />
            <ToggleStateOn Text="آره" />
        </ToggleStates>
    </telerik:RadSwitch>
</div>

See Also

In this article
Not finding the help you need? Improve this article