DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.
Tree List

Simple Array: Hierarchical Structure

To bind the TreeList to a hierarchical array, do the following:

  1. Assign the array to the dataSource property.

  2. Set the dataStructure property to "tree".

  3. Use the itemsExpr property to specify the data field that contains nested items.

  4. If each data item has a Boolean field that specifies whether this data item nests other items, assign the field's name to the hasItemsExpr property. The TreeList uses this information to render the expand button. This is required only if the UI component is bound to a remote data source.

Thank you for your interest in our ASP.NET Core product libraries and UI component suite. We are moving ASP.NET Core-related demos and content to Please make sure to update your bookmarks with our new URL.

View Demo