|
1 | 1 | # Binding Expando and Dynamic Objects to the ASP.NET Core DataGrid Control
|
2 | 2 |
|
3 |
| -A quick start ASP.NET Core web application that shows how to bind the Expando and Dynamic Objects to a Data Grid. |
| 3 | +A quick start ASP.NET Core web application demonstrating how to bind a dynamic list of objects using Expando and Dynamic Objects using Syncfusion Grid Control. |
4 | 4 |
|
5 |
| -The expando-Object is a class that allows you to add and delete a member of its instance at runtime and to set and get their values. Usually, the ASP.NET Core DataGrid is strongly bound to a data source model type. To define the model type at runtime, you can use this expando object class. |
| 5 | +* `ExpandoObject`: Allows dynamic members to be added or removed at runtime, useful for binding data to a Data Grid without a predefined model. |
| 6 | +* `DynamicObject`: Enables runtime definition of object structure and behavior by inheriting from DynamicObject and overriding methods like TryGetMember, TrySetMember, and GetDynamicMemberNames. |
6 | 7 |
|
7 |
| -The dynamic object class enables you to define the structure of an object at runtime, specifying the operations to be performed and how to perform those. You cannot directly create an instance of the dynamic object class. To implement the dynamic behavior, inherit a dynamic dictionary from the dynamic object class and override the TryGetMember, ‘TrySetMember’ and ‘GetDynamicMemberNames’ methods. |
| 8 | +## Documentations: |
| 9 | +* Expando Object: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#expandoobject-binding |
| 10 | +* Dynamic Object: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#dynamicobject-binding |
| 11 | +* Data Binding: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/remote-data |
| 12 | +* Table Binding: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/data-table |
| 13 | +--- |
| 14 | +Demo: https://ej2.syncfusion.com/aspnetcore/Grid/DefaultFunctionalities#/fluent |
8 | 15 |
|
9 |
| -Refer to the expando object binding documentation for the Syncfusion ASP.NET Core DataGrid control: |
10 |
| -https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#expandoobject-binding |
| 16 | +## Project pre-requisites |
| 17 | +Make sure you have compatible versions of the following IDE and framework installed on your machine before starting this project: |
11 | 18 |
|
12 |
| -Refer to the dynamic object binding documentation for the Syncfusion ASP.NET Core DataGrid control: |
13 |
| -https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#dynamicobject-binding |
| 19 | +* .NET SDK 6.0 ([.NET ](https://dotnet.microsoft.com/en-us/download)) |
| 20 | +* Visual Studio 2022 ([Visual studio](https://visualstudio.microsoft.com/downloads/)) or later |
| 21 | +--- |
| 22 | +To learn more about the supported IDE and frameworks for our ASP.NET Core controls, please refer to the documentation below: |
| 23 | +https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements |
14 | 24 |
|
15 |
| -Check out this online example of exporting in the Syncfusion ASP.NET Core DataGrid control: |
16 |
| -https://ej2.syncfusion.com/aspnetcore/Grid/ExpandoObjectBinding#/fluent |
17 | 25 |
|
18 |
| -Check out this online example of exporting in the Syncfusion ASP.NET Core DataGrid control: |
19 |
| -https://ej2.syncfusion.com/aspnetcore/Grid/DynamicObjectBinding#/fluent |
20 | 26 |
|
21 |
| -Refer to the list binding documentation for the Syncfusion ASP.NET Core DataGrid control: |
22 |
| -https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/local-data#list-binding |
| 27 | +### How to run this application: |
23 | 28 |
|
24 |
| -Refer to the remote data binding documentation for the Syncfusion ASP.NET Core DataGrid control: |
25 |
| -https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/remote-data |
| 29 | +To run this application, you need to clone the `binding-expando-and-dynamic-objects-to-the-aspdotnet-core-datagrid` repository and open it in Visual Studio. Install the necessary NuGet packages via the package manager, then build and run the project using the Visual Studio interface. |
26 | 30 |
|
27 |
| -Refer to the data table binding documentation for the Syncfusion ASP.NET Core DataGrid control: |
28 |
| -https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/data-table |
29 |
| - |
30 |
| -Watch the video to get started with the ASP.NET Core DataGrid control: |
31 |
| -https://www.youtube.com/watch?v=E5w2fO-N9gE |
32 |
| - |
33 |
| - |
34 |
| -## Project pre-requisites |
35 |
| - |
36 |
| -Make sure that you have the compatible versions of Visual Studio 2022 and .NET 7.0 SDK framework in your machine before starting to work on this project. |
37 |
| - |
38 |
| -### How to run this application? |
39 |
| - |
40 |
| -To run this application, you need to clone the `binding-expando-and-dynamic-objects-to-the-aspdotnet-core-datagrid` repository and then open it in Visual Studio Code. Now, simply install all the necessary react packages into your current project by pressing the `F5` command. |
0 commit comments