Tree Grid / Data Binding / DynamicObject Binding

Blazor Tree Grid Example - DynamicObject Binding

Loading Syncfusion Blazor Server Demos…

1 of 12 pages (24 items)

This sample demonstrates how to bind the Tree Grid to a list of DynamicObject instances, which is useful when the data schema is not defined at compile time. This approach supports core Tree Grid capabilities by resolving members at runtime.

DynamicObject binding can be enabled by assigning a dynamic collection to the Tree Grid's DataSource and exposing runtime members by overriding GetDynamicMemberNames, allowing the Tree Grid to automatically discover columns and perform data operations without requiring a predefined model.

In this demo, the tree column is "Project Title". The Tree Grid supports inline CRUD operations through its toolbar, which includes buttons for Add, Delete, Update, and Cancel. Paging is configured with a page size of two for root items, and a footer aggregate displays the total sum of the "Budget" column.

For more detailed information on DynamicObject binding, please refer to this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE