This demo exemplifies the two ways that you can chooses between when it comes to locating many items as children to a root item.
You can either have scrolling or multi-columns in such case.
In the Multi-column section we demonstrate how the RadMenu supports multi-column rendering of child items. This feature is controlled
by the GroupSettings (either DefaultGroupSettings
or per-item GroupSettings) using two properties:
The RepeatDirection property determines the order in which the
items are rendered.
If this property is set to RepeatDirection.Vertical, the items
are displayed in columns loaded from top to bottom, then left to right, until all
items are rendered.
If this property is set to RepeatDirection.Horizontal, the items
are displayed in rows loaded from left to right, then top to bottom, until all items
are rendered.
The RepeatDirection has no effect if RepeatColumns
is set to 1 (default).
The RepeatColumns property specifies the number of columns.
Note that scrolling of the control is disabled if multi-column rendering is in effect.
In the Scrolling Items section above we exemplify the RadMenu control support of scrolling its items - both root and child items.
If the overall height (for the child items) or width (for the root items) of the items
exceeds the predefined group's height or width, scrolling arrows will appear. You
can use the mouse pointer or the mouse wheel to scroll the items.
- 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.
Here is some sample code demonstrating how you can set the GroupSettings properties in the markup:
<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>