DevExtreme v23.1 is now available.

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

Your search did not match any results.
Tag Box

Grouped Items

The TagBox component can arrange items into a two-level parent-child hierarchy. To group items, set the grouped property to true and ensure the data source defines the hierarchy in one of the following ways:

  • Grouping Field
    The data source can contain a plain array of objects with multiple fields. Assign a field to the DataSource's group property to create a hierarchical display. Parent items display unique values from the specified field, and Child items display grouped values. This demo shows how to use this data source type.

  • Hierarchical Data Source Structure
    You can use a dataSource where each entry is an object that contains the key and items fields. The key field specifies the group header (parent), and the items field holds an array of child items. A data source can specify different field names if the data is structured in the same way. In this case, implement the DataSource's map function to create key and items field mappings. Refer to the following help topic for more information: Item Mapping.

This demo also shows how to customize the appearance of group headers (the groupTemplate property) and enable search (the searchEnabled property).

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