Example of Remote Data in Blazor TreeView Component

TreeView / Data Binding / Remote Data

The Blazor TreeView sample demonstrates the binding data to the TreeView from remote data source. On expanding the parent node, the spinner icon will be displayed until the child nodes are loaded into the parent node. Click on node to select it, and click on the expand/collapse icon or double click on node to expand/collapse it.

    The TreeView component loads the data through the DataSource property, where the data can be either local data or remote data. In case of remote data, the data can be loaded from any remote services though the DataManager.

    The DataManager will act as an interface between the service endpoint and the TreeView, that requires the below minimal information to interact with the service endpoint.

    DataManager->Url - Defines the service endpoint to fetch data. DataManager->Adaptor - Defines the adaptor option. By default, ODataV4Adaptor is used for remote binding.

    In this demo, the TreeView is bound with the DataSource from the Northwind remote service by using the DataManager instance.

    More information about Treeview can be found in this documentation section.

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