This is a migrated thread and some comments may be shown as answers.

Scrolling

1 Answer 31 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 09 Jun 2011, 09:55 AM
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?

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 13 Jun 2011, 07:47 AM
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
Tags
Menu
Asked by
Daní
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or