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 / Scrolling


  • RadMenu items groups support scrolling. If the overall height / width of the items exceeds the predefined group's height / width, scrolling arrows will appear. You can scroll with the mouse wheel as well.

    • If the RadMenuItem.GroupSettings.Height property is specified and the size of the content exceeds that height - vertical scrolling will be enabled.
    • If the RadMenuItem.GroupSettings.Width property is specified and the size of the content exceeds that width - horizontal scrolling will be enabled.
    <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Outlook">
        <Items>
            <telerik:RadMenuItem Text="Corporate">
                <GroupSettings Height="100px"></GroupSettings>
                <Items>
                    ...
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="Products">
                <GroupSettings Width="200px" Flow="Horizontal"></GroupSettings>
                <Items>
                    ...
                </Items>
            </telerik:RadMenuItem>        
        </Items>
    </telerik:RadMenu>
    

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Menu.Scrolling.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 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="VB"></qsf:Header>
            <telerik:RadMenu ID="RadMenu1" runat="server" EnableRootItemScroll="true" Width="250px"    Style="margin-bottom: 100px" EnableRoundedCorners="true" EnableShadows="true">
                <Items>
                    <telerik:RadMenuItem Text="File" GroupSettings-Height="100px">
                        <Items>
                            <telerik:RadMenuItem Text="New" />
                            <telerik:RadMenuItem Text="Open" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Save" />
                            <telerik:RadMenuItem Text="Save As" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Print Preview" />
                            <telerik:RadMenuItem Text="Print" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Close" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Edit" GroupSettings-Height="100px">
                        <Items>
                            <telerik:RadMenuItem Text="Undo" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Cut" />
                            <telerik:RadMenuItem Text="Copy" />
                            <telerik:RadMenuItem Text="Paste" />
                            <telerik:RadMenuItem Text="Clipboard..." />
                            <telerik:RadMenuItem IsSeparator="True">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Insert" GroupSettings-Height="100px">
                        <Items>
                            <telerik:RadMenuItem Text="Break..." />
                            <telerik:RadMenuItem Text="Page Numbers..." />
                            <telerik:RadMenuItem Text="Date and Time..." />
                            <telerik:RadMenuItem Text="Field..." />
                            <telerik:RadMenuItem Text="Symbol..." />
                            <telerik:RadMenuItem Text="Comment" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Picture" />
                            <telerik:RadMenuItem Text="Diagram" />
                            <telerik:RadMenuItem Text="Text Box" />
                            <telerik:RadMenuItem Text="Hyperlink" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Format" GroupSettings-Height="200px">
                        <Items>
                            <telerik:RadMenuItem 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..." />
                            <telerik:RadMenuItem Text="Bullets and Numbering..." />
                            <telerik:RadMenuItem Text="Borders and Shading..." />
                            <telerik:RadMenuItem IsSeparator="true" />
                            <telerik:RadMenuItem Text="Columns" />
                            <telerik:RadMenuItem Text="Tabs" />
                            <telerik:RadMenuItem Text="Change Case" />
                            <telerik:RadMenuItem IsSeparator="true" />
                            <telerik:RadMenuItem Text="Background" />
                            <telerik:RadMenuItem Text="Theme" />
                            <telerik:RadMenuItem Text="Frames" />
                            <telerik:RadMenuItem Text="Autoformat" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="View" GroupSettings-Width="200px" GroupSettings-Flow="Horizontal">
                        <Items>
                            <telerik:RadMenuItem Text="Normal" />
                            <telerik:RadMenuItem Text="Web Layout" />
                            <telerik:RadMenuItem Text="Print Layout" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Task Pane" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Tools" GroupSettings-Height="100px">
                        <Items>
                            <telerik:RadMenuItem Text="Spelling And Grammar..." />
                            <telerik:RadMenuItem Text="Research..." />
                            <telerik:RadMenuItem Text="Language" />
                            <telerik:RadMenuItem Text="Word Count..." />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Track Changes" />
                            <telerik:RadMenuItem Text="Compare And Merge Documents.." />
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
            <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