DataGrid / Data Binding / Flexible Data

Blazor DataGrid Example - Flexible Data Binding

Loading Syncfusion Blazor Server Demos…

0 of 0 pages (0 items)
Properties
Service
:

Payload Information

Service URL : https://blazor.syncfusion.com/services/development/odata/gridodatav4service

Adaptor Type : ODataV4Adaptor

This sample demonstrates flexible data binding in the Blazor DataGrid using various remote services.

The Blazor DataGrid supports flexible data binding through the SfDataManager component, which acts as an interface between remote data services and the DataGrid.

The SfDataManager requires the following configuration to interact with service endpoints:

  • SfDataManager->Url - Specifies the service endpoint for retrieving data
  • SfDataManager->Adaptor - Defines the adaptor type to process requests and responses

The adaptor processes communication between the service endpoint and DataGrid. The Syncfusion.Blazor.Data package provides predefined adaptors:

  • UrlAdaptor - Interacts with any remote service (base adaptor for all remote adaptors)
  • ODataV4Adaptor - Interacts with OData V4 endpoints
  • WebApiAdaptor - Interacts with Web APIs following OData standards

This demo uses ODataV4Adaptor for connecting to OData services. You can dynamically change the DataGrid's datasource by:

  • Selecting a different URL from the Service dropdown to update the data source
  • Enabling or disabling paging using the Paging checkbox (when paging is disabled, virtualization is enabled for smooth rendering)
  • Viewing the connected service and corresponding adaptor information in the Payload Information section

For more information about data binding, refer to the data binding documentation.

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