Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

FormDecorator / Right-to-left Support

Gender:

Select Your Favorite Music Styles:

Select Age:





  • Form Decorator for ASP.NET AJAX

    Telerik RadFormDecorator provides full right-to-left support, applied not only to the <body> element, but to any wrapping element as well.

    The only thing that should be done is to add the dir="rtl" attribute to the element or to the <body> tag, or use the respective CSS property, i.e direction: rtl;.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.Web.Examples.FormDecorator.RightToLeftSupport.DefaultVB" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <style type="text/css">
        .formRow
        {
            float: left;
            border-right: solid 1px #cbcbcb;
            height: 200px;
        }
        
        br
        {
            clear: both;
        }
        
        h4
        {
            font: bold 14px Verdana, Arial, Sans-serif;
            color: #7f97c0;
        }
        
        .qsfSkinChooser img
        {
            margin-top: -1px;
        }
        </style>
    </head>
    <body class="BODY">
        <form id="form1" runat="server">
            <qsf:header id="Header1" runat="server" NavigationLanguage="VB" ShowSkinChooser="false" />
            
            <asp:ScriptManager ID="ScriptManager" runat="server" />
            <telerik:radformdecorator id="FormDecorator1" runat="server" decoratedcontrols="all"
                skin="Default" DecorationZoneID="Rtl1">
            </telerik:radformdecorator>
            <div dir="rtl" id="Rtl1">
                <div class="formRow" style="padding-right: 21px;">
                    <h4>Gender:</h4>
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem Text="Male" Selected="True" />
                        <asp:ListItem Text="Female" />
                    </asp:RadioButtonList>
                </div>
                <div class="formRow" style="padding-right: 21px; padding-left: 21px;">
                    <h4>Select Your Favorite Music Styles:</h4>
                    <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                        <asp:ListItem Text="Classic" Selected="True" />
                        <asp:ListItem Text="Rock" Selected="True" />
                        <asp:ListItem Text="Jazz and Fusion" />
                        <asp:ListItem Text="Rhythm and Blues" />
                        <asp:ListItem Text="Hard'n'Heavy" />
                    </asp:CheckBoxList>
                </div>
                <div class="formRow" style="padding-left: 21px; border: 0;">
                    <h4>Select Age:</h4>
                    <asp:RadioButtonList ID="RadioButtonList2" runat="server">
                        <asp:ListItem Text="below 18" />
                        <asp:ListItem Text="18-22" />
                        <asp:ListItem Text="23-29" Selected="True" />
                        <asp:ListItem Text="30-39" />
                        <asp:ListItem Text="40-49" />
                        <asp:ListItem Text="50-59" />
                        <asp:ListItem Text="60 and above" />
                    </asp:RadioButtonList>
                </div>
                <br /><br /><br />
                <asp:button ID="Button1" runat="server" Text="Log In" />
            </div>
            <qsf:footer runat="server" id="Footer1"/>
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451