# Layout of Child Items

By default, when the user expands a menu item from a horizontal layout, the child items appear immediately below it, stacked vertically. When the user expands a menu item from a vertical layout, the child items appear immediately beside it, stacked vertically:

![RadMenu Default Layout](https://www.telerik.com/products/aspnet-ajax/documentation/assets/b6aa4f1345d7fa81258b776897746fe1/menu_defaultlayout.png)

You can change this default layout of child items using the **GroupSettings** property of the parent item. To access the **GroupSettings** property at design time, select the item in the [RadMenu Item Builder](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/design-time/radmenu-item-builder).

**GroupSettings** is a composite property, with the following sub-properties:

* **ExpandDirection** determines where the list of child items appears relative to the parent item.

* **Auto** (the default) causes child items to inherit the expand direction that applied to the parent item.

* **Up** causes child items to appear above the parent item:![RadMenu Upward Expansion](https://www.telerik.com/products/aspnet-ajax/documentation/assets/7cb66212f191b5688f83ff40dc52105a/menu_upwardexpansion.png)

* **Down** causes child items to appear below the parent item:![RadMenu Downward Expansion](https://www.telerik.com/products/aspnet-ajax/documentation/assets/3d3c4252c4765aeddea373bc3e2b4689/menu_downwardexpansion.png)

* **Left** causes child items to appear to the left of the parent item:![RadMenu Left Expansion](https://www.telerik.com/products/aspnet-ajax/documentation/assets/c9217b9d653c7c1dff93efbbb3a623f7/menu_leftexpansion.png)

* **Right** causes child items to appear to the right the parent item:![RadMenu Right Expansion](https://www.telerik.com/products/aspnet-ajax/documentation/assets/646532f2b0f692ce0428e098fa973381/menu_rightexpansion.png)

> note By default, if the specified **ExpandDirection** would cause items to cross a screen boundary, the list of child items appears in the opposite direction from the one specified. You can override this behavior by setting the **EnableScreenBoundaryDetection** property to **False** .

* **Flow** controls how the child items are stacked.

* When **Flow** is **Vertical** (the default) child items appear on top of each other:![RadMenu Downward Expansion](https://www.telerik.com/products/aspnet-ajax/documentation/assets/3d3c4252c4765aeddea373bc3e2b4689/menu_downwardexpansion.png)

* When **Flow** is **Horizontal**, child items appear beside each other![RadMenu Horizontal Childs](https://www.telerik.com/products/aspnet-ajax/documentation/assets/f5d8d688dea79d197e99b30b64be37b8/menu_horizontalchildflow.png)

* **Height** and **Width** control the height and width of the area in which the child items can expand. When **Flow** is **Vertical**, and **Height** is too small to fit all items, the list of items becomes scrollable:![RadMenu Scroll Height](https://www.telerik.com/products/aspnet-ajax/documentation/assets/ebb258da9e44f81c63f032468ecba12c/menu_scrollheight.png)

Similarly, when **Flow** is **Horizontal**, and **Width** is too small to fit all items, the list of items becomes scrollable:

![RadMenu Scroll Width](https://www.telerik.com/products/aspnet-ajax/documentation/assets/3830bff7f6aae5f7bc30d6db0e043408/menu_scrollwidth.png)

* **OffsetX** and **OffsetY** are the offsets, in pixels, of the child items from the parent item. Setting these sub-properties lets you specify a gap between the parent item and its child items:![RadMenu Offsets](https://www.telerik.com/products/aspnet-ajax/documentation/assets/8865f2e7a77ab77d9ba4f8486edf93d4/menu_offsets.png)

The following **RadMenu** declaration shows how the **GroupSettings** is attached to the parent menu item. It gives all items that have children an **ExpandDirection** of **Down**, a **Flow** of **Horizontal**, and an **OffsetX** of 10 pixels:

```ASP.NET
<telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" Flow="Horizontal" Skin="Vista">
    <Items>
        <telerik:RadMenuItem runat="server" Text="Root Item 1">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Child Item 1.1">
                    <GroupSettings ExpandDirection="Down" Flow="Horizontal" OffsetX="10" />
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="Child Item 1.1.1">
                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child Item 1.1.2">
                            <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Child Item 1.2">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Child Item 1.3">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                </telerik:RadMenuItem>
            </Items>
            <GroupSettings ExpandDirection="Down" Flow="Horizontal" OffsetX="10" />
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" Text="Root Item 2">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Child Item 2.1">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Child Item 2.2">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                </telerik:RadMenuItem>
            </Items>
            <GroupSettings ExpandDirection="Down" Flow="Horizontal" OffsetX="10" />
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>
```

This produces the following menu:

![RadMenu Horizontal Childs](https://www.telerik.com/products/aspnet-ajax/documentation/assets/26a3b48803dc723bfa6529af2c645868/menu_downhorizontal.png)

* The **RepeatColumns** property specifies the number of columns. (added in Q3 2009)

* The **RepeatDirection** property determines the order in which the items are rendered. (added in Q3 2009)

## See Also

* [Layout of Root Items ](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/appearance-and-styling/layout-of-root-items-)

* [Structure](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/structure)

* [Overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/radmenu-items/overview)

* [RTL Support](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/accessibility-and-internationalization/rtl-support)
