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

Menu / Right-to-left Support


  • RadMenu provides support for RTL languages.

    RadMenu considers the direction attribute set to the control itself or any parent HTML element. If you set the direction of the body tag (or any other parent element that contains the control) to rtl, RadMenu reverses the item order and aligns itself to the right side of the container.

    <telerik:RadMenu ID="RadMenu1" runat="server" dir="rtl" ... />
    

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ 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" %>

    <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Menu.RightToLeft.DefaultCS" %>

    <!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 ID="Headtag1" runat="server"></qsf:HeadTag>
    </head>
    <body class="BODY">
        <form id="mainForm" method="post" runat="server">
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="C#" XhtmlCompliant="True">
        </qsf:Header>
        <telerik:RadMenu ID="RadMenu1" runat="server" dir="rtl"
            EnableRoundedCorners="true" EnableShadows="true">
            <Items>
                <telerik:RadMenuItem Text="File" AccessKey="F">
                    <Items>
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/11new.gif" Text="New" AccessKey="w" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/12open.gif" Text="Open" AccessKey="O" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/13Save.gif" Text="Save" AccessKey="S" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/14SaveAs.gif" Text="Save As" AccessKey="A" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/15printPreview.gif" Text="Print Preview"
                            AccessKey="V" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/16print.gif" Text="Print" AccessKey="P" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/17close.gif" Text="Close" AccessKey="C" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Edit" AccessKey="E">
                    <Items>
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/21undo.gif" Text="Undo" AccessKey="U" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/cut.png" Text="Cut" AccessKey="T" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/copy.png" Text="Copy" AccessKey="C" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/paste.png" Text="Paste" AccessKey="P" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/23clipboard.gif" Text="Clipboard..."
                            AccessKey="b" />
                        <telerik:RadMenuItem IsSeparator="True">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Insert" AccessKey="I">
                    <Items>
                        <telerik:RadMenuItem Text="Break..." AccessKey="B" />
                        <telerik:RadMenuItem Text="Page Numbers..." AccessKey="U" />
                        <telerik:RadMenuItem Text="Date and Time..." AccessKey="T" />
                        <telerik:RadMenuItem Text="Field..." AccessKey="F" />
                        <telerik:RadMenuItem Text="Symbol..." AccessKey="S" />
                        <telerik:RadMenuItem Text="Comment" AccessKey="M" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Picture" AccessKey="P" />
                        <telerik:RadMenuItem Text="Diagram" AccessKey="G" />
                        <telerik:RadMenuItem Text="Text Box" AccessKey="X" />
                        <telerik:RadMenuItem Text="Hyperlink" AccessKey="I" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Format" AccessKey="O">
                    <Items>
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/26Font.gif" Text="Font" GroupSettings-Height="200">
                            <Items>
                                <telerik:RadMenuItem Text="Arial" />
                                <telerik:RadMenuItem Text="Verdana" />
                                <telerik:RadMenuItem Text="Tahoma" />
                                <telerik:RadMenuItem Text="Sans-serif" />
                                <telerik:RadMenuItem IsSeparator="true" />
                                <telerik:RadMenuItem Text="Arial" />
                                <telerik:RadMenuItem Text="Arial Black" />
                                <telerik:RadMenuItem Text="Arial Narrow" />
                                <telerik:RadMenuItem Text="Arial Unicode MS" />
                                <telerik:RadMenuItem Text="Bookman Old Style" />
                                <telerik:RadMenuItem Text="Bookshelf Symbol 7" />
                                <telerik:RadMenuItem Text="Century" />
                                <telerik:RadMenuItem Text="Century Gothic" />
                                <telerik:RadMenuItem Text="Comic Sans MS" />
                                <telerik:RadMenuItem Text="Courier New" />
                                <telerik:RadMenuItem Text="Garamond" />
                                <telerik:RadMenuItem Text="Georgia" />
                                <telerik:RadMenuItem Text="Goudy Old Style" />
                                <telerik:RadMenuItem Text="Goudy Stout" />
                                <telerik:RadMenuItem Text="Haettenschweiler" />
                                <telerik:RadMenuItem Text="Helvetica" />
                                <telerik:RadMenuItem Text="Impact" />
                                <telerik:RadMenuItem Text="Imprint MT Shadow" />
                                <telerik:RadMenuItem Text="Latha" />
                                <telerik:RadMenuItem Text="Lucida Console" />
                                <telerik:RadMenuItem Text="Lucida Sans" />
                                <telerik:RadMenuItem Text="Lucida Sans Typewriter" />
                                <telerik:RadMenuItem Text="Lucida Sans Unicode" />
                            </Items>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Paragraph..." AccessKey="P" />
                        <telerik:RadMenuItem Text="Bullets and Numbering..." AccessKey="N" />
                        <telerik:RadMenuItem Text="Borders and Shading..." AccessKey="B" />
                        <telerik:RadMenuItem IsSeparator="true" />
                        <telerik:RadMenuItem Text="Columns" AccessKey="C" />
                        <telerik:RadMenuItem Text="Tabs" AccessKey="T" />
                        <telerik:RadMenuItem Text="Change Case" AccessKey="E" />
                        <telerik:RadMenuItem IsSeparator="true" />
                        <telerik:RadMenuItem Text="Theme" AccessKey="H" />
                        <telerik:RadMenuItem Text="Frames" AccessKey="R" />
                        <telerik:RadMenuItem Text="Autoformat" AccessKey="A" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="View" AccessKey="V">
                    <Items>
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/31normal.gif" Text="Normal" AccessKey="N" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/32web.gif" Text="Web Layout" AccessKey="W" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/33print.gif" Text="Print Layout" AccessKey="P" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/34Tasks.gif" Text="Task Pane" AccessKey="p" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Tools" AccessKey="T">
                    <Items>
                        <telerik:RadMenuItem Text="Spelling And Grammar..." AccessKey="S" />
                        <telerik:RadMenuItem Text="Research..." AccessKey="R" />
                        <telerik:RadMenuItem Text="Language" AccessKey="L" />
                        <telerik:RadMenuItem Text="Word Count..." AccessKey="W" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Track Changes" AccessKey="T" />
                        <telerik:RadMenuItem Text="Compare And Merge Documents.." AccessKey="D" />
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
        <br style="clear: both" />
        <qsf:Footer ID="Footer1" runat="server"></qsf:Footer>
        </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