This sample demonstrates how to bind a Syncfusion Blazor DataGrid to data that is loaded asynchronously from a Web API service in a Blazor Server application. The sample also shows how users can perform create, update, and delete operations through the Grid's built-in toolbar commands without implementing custom action buttons. It provides a reference implementation for developers who need asynchronous data access combined with standard Grid editing workflows in a server-side Blazor application.
- Uses the Syncfusion Blazor DataGrid within a Blazor Server application.
- Demonstrates asynchronous data retrieval from a Web API endpoint.
- Supports create, update, and delete operations through default Grid toolbar items.
- Shows integration between Blazor Server UI components and backend Web API services.
- Includes dedicated
ControllersandDatafolders used to support asynchronous CRUD processing. - Uses repository structure that separates UI, backend endpoints, and data models for maintainability.
- Visual Studio 2022 or Visual Studio Code
- .NET SDK compatible with the project's target framework
Visual Studio 2022
- Clone or download this repository.
- Open the solution file:
DefaultToolbarItemSample.sln - Restore NuGet packages.
- Set the startup project to:
DefaultToolbarItemSample - Build the solution.
- Run the application using
Ctrl+F5.
Visual Studio Code
- Open the repository folder in Visual Studio Code.
- Open the integrated terminal.
- Navigate to the directory containing
DefaultToolbarItemSample.csproj. - Restore NuGet packages:
dotnet restore- Run the application:
dotnet runPages/ — contains the Blazor page implementation that renders the Syncfusion DataGrid sample.
Controllers/ — contains Web API endpoints responsible for asynchronous data retrieval and CRUD processing.
Data/ — contains sample data models and supporting data-access logic used by the application.
- For general product questions, visit the Syncfusion Community Forum or Syncfusion Support.
- To report an issue specific to this sample, open a GitHub issue in this repository.
- Official Syncfusion DataGrid editing documentation: https://help.syncfusion.com/grid-sdk/blazor/data-grid/editing
This is a Syncfusion sample project provided to demonstrate product usage. Review the Syncfusion license terms before using Syncfusion components in your own applications.