Skip to content

This sample demonstrates how to bind ExpandoObject data in Syncfusion Blazor DataGrid and use EditTemplate to render a custom editor.

Notifications You must be signed in to change notification settings

SyncfusionExamples/ExpandoObject-data-binding-with-EditTemplate-in-Blazor-DataGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ExpandoObject-data-binding-with-EditTemplate-in-Blazor-DataGrid

This sample demonstrates how to bind the Syncfusion Blazor DataGrid to an ExpandoObject and use the EditTemplate feature to dynamically render a custom editor such as SfTextBox.

Overview

In this example:

  • The Grid is bound to a dynamic list of ExpandoObject items (Orders).

  • The CustomerID column uses an EditTemplate to render a SfTextBox during edit operations.

  • Changes made to the textbox are tracked using the ValueChange event and updated during the RowUpdating event.

  • ExpandoObject allows flexible, dynamic property management without predefined model classes.

Getting Started

Prerequisites

Project Setup

  1. Clone the repository:

     git clone https://github.com/SyncfusionExamples/ExpandoObject-data-binding-with-EditTemplate-in-Blazor-DataGrid.git
  2. Navigate to the project folder:

    cd ExpandoObject-data-binding-with-EditTemplate-in-Blazor-DataGrid
  3. Restore the NuGet packages:

    dotnet restore
  4. Build and run the application:

    dotnet run
  5. Open the browser at https://localhost:port (port varies).

About

This sample demonstrates how to bind ExpandoObject data in Syncfusion Blazor DataGrid and use EditTemplate to render a custom editor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •