Blazor Tree Grid Example - DynamicObject Binding
This sample explains about the usage of DynamicObject data binding with CRUD operations, sorting, filtering, and aggregate functionalities in the Tree Grid component.
Task ID Press Enter to sort | Task Name Press Enter to sort | Start Date Press Enter to sort | Duration Press Enter to sort | Progress Press Enter to sort | Priority Press Enter to sort |
---|---|---|---|---|---|
1 | Parent task 1 | 6/10/2021 | 76 | Open | Low |
2 | Child task 1 | 12/13/2019 | 98 | Closed | Critical |
3 | Child task 2 | 12/14/2019 | 64 | Validated | Low |
4 | Child task 3 | 12/15/2019 | 98 | Closed | Critical |
5 | Parent task 2 | 6/11/2021 | 76 | Open | Low |
6 | Child task 4 | 12/13/2019 | 64 | Validated | Low |
7 | Child task 5 | 12/14/2019 | 98 | Closed | Critical |
8 | Child task 6 | 12/15/2019 | 98 | Closed | Critical |
DynamicObject can be bound to Tree Grid by assigning to the DataSource property.
The GetDynamicMemberNames method of the DynamicObject class must be overridden and return the property names to render and perform data operations, editing, etc. while using DynamicObject.
More information on the DynamicObject data binding can be found in this documentation section.