# Menu Data Binding to Flat Data

This article explains how to bind the Menu for Blazor to flat data.
Before continuing, make sure you are familiar with the [menu data binding basics](https://www.telerik.com/blazor-ui/documentation/components/menu/data-binding/overview).

Flat data means that the entire collection of menu items is available at one level, for example `List<MyMenuModel>`.

The parent-child relationships are created through internal data in the model - the `ParentId` field which points to the `Id` of the item that will contain the current item. The root level has `null` for `ParentId`.

You are *not* required to provide a value for the `HasChildren` field. If you set `HasChildren` to `false`, child items will not be rendered even if they are present in the data. If there are no child items in the data, an expand icon will not be rendered regardless of its value.

> caption Example of flat data in a menu (for brevity, URLs are omitted)

<demo metaUrl="client/menu/flat-data/example-1/" height="320"></demo>

> caption The result from the code snippet above, after hovering the "Roadmap" item

![Blazor Menu displaying flat data after hovering a menu item](https://www.telerik.com/blazor-ui/documentation/assets/3260ecc7086b9a0a6855f6913726d74e/menu-flat-data-overview.png)

## See Also

* [Menu Data Binding Basics](https://www.telerik.com/blazor-ui/documentation/components/menu/data-binding/overview)
* [Live Demo: Menu Flat Data](https://demos.telerik.com/blazor-ui/menu/flat-data)
* [Binding to Hierarchical Data](https://www.telerik.com/blazor-ui/documentation/components/menu/data-binding/hierarchical-data)
