- United States of America
- Cuba
- Mexico
Blazor TreeView Example - Local Data Binding
The Blazor TreeView sample demonstrates the binding of local data to the TreeView. Click on node to select it, and click on the expand/collapse icon or double click on node to expand/collapse it.
Hierarchical Data
List Data
- New South Wales
- Victoria
- South Australia
- Western Australia
The TreeView component loads the data through the DataSource property, where the data can be either local data or remote data. In case of local data, the data structure can be hierarchical data or list data (with self-referential format i.e., mapped with the Id and ParentID fields). In this demo, the first TreeView is bound with the hierarchical data that contains array of nested objects. And the second TreeView is bound with the list type data where the parent-child relation is referred by the Id and ParentID mapping fields. More information about TreeView can be found in this documentation section.