This demo exemplified two main features of the RadMenu control - how to explicitly set the expand
direction of the items (using the GroupSettings) and how to explicitly specify the position where the items should appear.
The Offsetting Items group demonstrates how you can change the default setting for a particular group of items, so that the child items
expand somewhere else on the page.
To allow this, the RadMenuItem.GroupSettings class exposes the
OffsetX and OffsetY properties. They indicate
the horizontal and vertical offset of child menu items. The offset is measured in
pixels. You will also need to know that the value is relative to the parent item: the default value in both axes
is 0 (no offset).
The Expand Direction section exemplifies how you can use the GroupSettings class.
It exposes the ExpandDirection property that controls the expanding
direction of the item's children. The values that you can use are Auto
(that is the default one) Up,
Down, Left, and Right.
The default Auto value will expand child items:
- downward, if the parent group is horizontal;
- to the right, if the parent group is vertical.