Scrolling

2 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 09 Jun 2011 Link to this post

    Hello,

    I'm using a RadMenu with several items. Right now, space needed to show all items is larger than the available space and a couple of them are not shown. Is there any way to get an scroll on RadMenu?
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 13 Jun 2011 Link to this post

    Hello Daní,

    To take advantage of scrolling in RadMenu, you need to edit the one (or all) of the tempaltes for RadMenuItem - TopLevelItemTemplate, TopLevelHeaderTemplate, SubMenuItemTemplate, SubMenuHeaderTemplate. Simply add a ScrollViewer around the ItemsPresenter like this:
    <ScrollViewer MaxHeight="160" VerticalScrollBarVisibility="Auto" telerik:StyleManager.Theme="{StaticResource Theme}">
                                            <ItemsPresenter Margin="1"/>    
    </ScrollViewer>

    Note that you need to set the MaxHeight of the ScrollViewer in order for the Scrollviewer to work properly. Attached is a sample.

    I hope this helps.

    Greetings,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top