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 / First Look

Example Configuration
  • select

Expand Animation

  • select

Collapse Animation

  • select

  • RadMenu is the most advanced navigation control for ASP.NET allowing you to build lightweight and search-engine friendly menu systems. Thanks to its super-efficient rendering technology, RadMenu produces significantly less markup. RadMenu provides a rich API and comprehensive set of events for flexible customization.

    Key Features

    • Semantic rendering for minimal HTML markup
    • Powerful databinding
    • Rich client-side API providing the ability to add/delete items at the client-side 
    • XHTML and Accessibility standards compliancy
    • Search Engine Friendly
    • Extensive design-time support
    • Context Menu
    • Expand Animations
    • Skinned Appearance
    • Custom Attributes
    • Template Support
    • Right to left support
    • Screen Boundaries Right to left support
    • Scrollable Menus

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Menu.Default.DefaultCS" %>

    <%@ 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" />
        <link rel="stylesheet" type="text/css" href="styles.css" />
    </head>
    <body class="BODY">
        <form id="mainForm" method="post" runat="server">
            <telerik:RadScriptManager ID="ScriptManager" runat="server" />
            <qsf:Header runat="server" NavigationLanguage="C#" />
            <telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">

                <script type="text/javascript">
                function applySettings()
                {
                    var menu = $find("<%= RadMenu1.ClientID %>");
                    
                    //set the expand animation
                    var expandAnimationTypeDropDown = $find("<%= ExpandAnimationComboBox.ClientID %>");
                    var expandAnimationType =
                        Telerik.Web.UI.AnimationType.parse(expandAnimationTypeDropDown.get_text());
                    menu.get_expandAnimation().set_type(expandAnimationType);
                    
                    //set the expand duration
                    var expandDurationTextBox = $find("<%= ExpandDurationTextBox.ClientID %>");
                    var expandDuration = parseInt(expandDurationTextBox.get_value());
                    menu.get_expandAnimation().set_duration(expandDuration);
                    
                    // set the collapse animation
                    var collapseAnimationTypeDropDown = $find("<%= ColapseAnimationComboBox.ClientID %>");
                    var collapseAnimationType =
                        Telerik.Web.UI.AnimationType.parse(collapseAnimationTypeDropDown.get_text());
                    menu.get_collapseAnimation().set_type(collapseAnimationType);
                    
                    //set collapse duration
                    var collapseDurationTextBox = $find("<%= CollapseDurationTextBox.ClientID %>");
                    var collapseDuration = parseInt(collapseDurationTextBox.get_value());
                    menu.get_collapseAnimation().set_duration(collapseDuration);
                    
                    var firstItem = menu.get_items().getItem(0);
                    
                    if (!menu.get_openedItem())
                        firstItem.open();
                    else
                        firstItem.close();
                    
                    return false;
                }        
                </script>

            </telerik:RadCodeBlock>
            <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="ClickToOpenCheckBox">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="OrientationComboBox">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
            <asp:Panel runat="server" ID="Panel1" CssClass="menu-container">
                <telerik:RadMenu ID="RadMenu1" runat="server" 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 ImageUrl="~/Menu/Images/25BgColor.gif" Text="Background" AccessKey="g">
                                    <Items>
                                        <telerik:RadMenuItem>
                                            <ItemTemplate>
                                                <div style="padding: 20px 0 20px 20px;">
                                                    <telerik:RadColorPicker runat="server" ID="RadColorPicker1" Preset="Metro" ShowEmptyColor="false"
                                                        Width="200px" SelectedColor="#000000" />
                                                </div>
                                            </ItemTemplate>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem IsSeparator="True" />
                                        <telerik:RadMenuItem Text="More Colors..." AccessKey="M" />
                                        <telerik:RadMenuItem Text="Fill Efects..." AccessKey="F" />
                                        <telerik:RadMenuItem ImageUrl="~/Menu/Images/253Watermark.gif" Text="Printed Watermark..."
                                            AccessKey="W" />
                                    </Items>
                                </telerik:RadMenuItem>
                                <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>
            </asp:Panel>
            <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Expanded="true">
                <div class="general-settings">
                    <ul>
                        <li>
                            <asp:CheckBox runat="server" ID="ClickToOpenCheckBox" Text="ClickToOpen:" AutoPostBack="true" TextAlign="Left" />
                        </li>
                        <li>
                            <label>Orientation:</label>
                            <telerik:RadComboBox runat="Server" ID="OrientationComboBox" AutoPostBack="true">
                                <Items>
                                    <telerik:RadComboBoxItem Text="Horizontal" Value="Horizontal" />
                                    <telerik:RadComboBoxItem Text="Vertical" Value="Vertical" />
                                </Items>
                            </telerik:RadComboBox>
                        </li>
                    </ul>
                </div>
                <div class="animation-settings">
                    <h3>
                        Expand Animation</h3>
                    <ul class="animation">
                        <li>
                            <label>
                                Type:</label>
                            <telerik:RadComboBox runat="server" ID="ExpandAnimationComboBox" Width="100px" style="z-index:8000" />
                        </li>
                        <li>
                            <label>
                                Duration:</label>
                            <telerik:RadNumericTextBox ID="ExpandDurationTextBox" runat="server" Width="100px"
                                IncrementSettings-Step="100" MinValue="0" MaxValue="3000" NumberFormat-DecimalDigits="0"
                                ShowSpinButtons="true" />
                        </li>
                    </ul>
                    <h3>
                        Collapse Animation</h3>
                    <ul class="animation">
                        <li>
                            <label>
                                Type:</label>
                            <telerik:RadComboBox runat="server" ID="ColapseAnimationComboBox" Width="100px" style="z-index:8000"/>
                        </li>
                        <li>
                            <label>
                                Duration:</label>
                            <telerik:RadNumericTextBox ID="CollapseDurationTextBox" runat="server" Width="100px"
                                IncrementSettings-Step="100" MinValue="0" MaxValue="3000" NumberFormat-DecimalDigits="0"
                                ShowSpinButtons="true" />
                        </li>
                    </ul>
    <asp:Button OnClientClick="return applySettings()" runat="server" ID="ApplySettingsButton"
    CssClass="qsfButton" Text="Update Animation" />

                </div>
            </qsf:ConfiguratorPanel>
            <qsf:Footer runat="server" />
        </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