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

Right-to-Left Support

RadSwitch can be placed in a right-to-left environment without issues in its appearance or functionality.

In order to switch a RadSwitch to RTL mode, you should set dir=rtl to its parent HTML element or use the direction:rtl CSS property. You can also do this globally for the page, e.g., on the <body>, <form> or <html> element.

  • DefaultVB.aspx
<%@ Page Language="vb" AutoEventWireup="true"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-thin" style="direction: rtl; text-align: center;">
        <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>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance