# FileManager Data Binding to Hierarchical Data

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

Hierarchical data means that the collection of child items is provided in a field of its parent's model:

* The `Items` field contains a collection of all children including sub-folders and files. They will be rendered in the [FileManager View](https://www.telerik.com/blazor-ui/documentation/components/filemanager/views) when the parent folder is selected.

* The `Directories` field contains a collection of the subfolders of a directory. They will be rendered in the TreeView navigation pane. If there are `Directories` for a specific folder it will have an expand icon. The `HasDirectories` field can override this, however, but it is not required for hierarchical data binding.

This approach of providing items lets you gather separate collections of data that may even come from different sources.

> caption Example of hierarchical data binding

<demo metaUrl="client/filemanager/hierarchical-data/example-1/" height="570"></demo>

## See Also

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