DataGrid / Editing / Dialog Template

Blazor DataGrid Example - Dialog Template

Loading Syncfusion Blazor Server Demos…

1 of 7 pages (75 items)

This sample demonstrates how to implement custom dialog templates in the DataGrid for performing CRUD operations with enhanced customization.

The Blazor DataGrid dialog template editing feature enables you to edit row data within a customized modal dialog that includes your own components and layouts. You can perform the following CRUD operations:

  • Add - Click the Add toolbar button to create a new record.
  • Edit - Double-click a row or click the Edit toolbar button after selecting a row.
  • Delete - Click the Delete toolbar button after selecting a row.
  • Update - Click the Update toolbar button to save changes.
  • Cancel - Click the Cancel toolbar button to discard changes.

Configure CRUD operations using the GridEditSettings component, which supports multiple edit modes:

  • Inline - Edit records directly within grid rows
  • Batch - Edit multiple records with batch operations

In this demo, dialog mode is enabled by setting the Mode property to Dialog in GridEditSettings. Begin editing by double-clicking a row or clicking the Edit button on the toolbar.

Customize the dialog appearance using the GridEditSettings component's Template property to render your custom dialog with tailored form fields and components. The currently selected row data will be displayed in your custom dialog template, allowing you to modify values and save changes to the datasource.

For more detailed information about dialog template editing, refer to the dialog template 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