Skip to content

Commit 6a00483

Browse files
vignesh.natarajan@syncfusion.comvignesh.natarajan@syncfusion.com
authored andcommitted
addressed the comments
1 parent db355eb commit 6a00483

File tree

4 files changed

+10
-10
lines changed
  • Binding MS SQL database using CustomAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Components/Pages
  • Binding MS SQL database using UrlAdaptor

4 files changed

+10
-10
lines changed

Binding MS SQL database using CustomAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Components/Pages/Home.razor

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
/// Returns the data collection after performing data operations based on request from <see cref=”DataManagerRequest”/>
6363
/// </summary>
6464
/// <param name="DataManagerRequest">DataManagerRequest contains the information regarding paging, grouping, filtering, searching which is handled on the DataGrid component side</param>
65-
/// <param name="key">An optional parameter that can be used to perform additional data operations.</param>
65+
/// <param name="Key">An optional parameter that can be used to perform additional data operations.</param>
6666
/// <returns>The data collection's type is determined by how this method has been implemented.</returns>
6767
public override async Task<object> ReadAsync(DataManagerRequest DataManagerRequest, string key = null)
6868
{
@@ -131,7 +131,7 @@
131131
/// <summary>
132132
/// Inserts a new data item into the data collection.
133133
/// </summary>
134-
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in applications.</param>
134+
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in application.</param>
135135
/// <param name="Value">The new record which is need to be inserted.</param>
136136
/// <param name="Key">An optional parameter that can be used to perform additional data operations.</param>
137137
/// <returns>Returns the newly inserted record details.</returns>
@@ -144,9 +144,9 @@
144144
/// <summary>
145145
/// Updates an existing data item in the data collection.
146146
/// </summary>
147-
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in applications.</param>
147+
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in application.</param>
148148
/// <param name="Value">The modified record which is need to be updated.</param>
149-
/// <param name="KeyField">The KeyField specifies the field name of the primary column.</param>
149+
/// <param name="KeyField">The Key field specifies the field name of the primary column.</param>
150150
/// <param name="Key">An optional parameter that can be used to perform additional data operations.</param>
151151
/// <returns>Returns the updated data item.</returns>
152152
public override async Task<object> UpdateAsync(DataManager DataManager, object Value, string KeyField, string Key)
@@ -159,9 +159,9 @@
159159
/// <summary>
160160
/// Removes a data item from the data collection.
161161
/// </summary>
162-
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in applications.</param>
163-
/// <param name="Value">The primaryColumnValue specifies the primary column value which is needs to be removed from the grid record.</param>
164-
/// <param name="KeyField">The primaryColumnName specifies the field name of the primary column.</param>
162+
/// <param name="DataManager">The DataManager is a data management component used for performing data operations in application.</param>
163+
/// <param name="Value">The primary column value specifies the primary column value which is needs to be removed from the grid record.</param>
164+
/// <param name="KeyField">The primary column name specifies the field name of the primary column.</param>
165165
/// <param name="Key">An optional parameter that can be used to perform additional data operations.</param>
166166
/// <returns>Returns the removed data item.</returns>
167167
public override async Task<object> RemoveAsync(DataManager DataManager, object Value, string KeyField, string Key)

Binding MS SQL database using UrlAdaptor/Blazor WASM app/MyWebService/MyWebService/Controllers/GridController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class GridController : ControllerBase
1414
/// <summary>
1515
/// Returns the data collection as result and count after performing data operations based on request from <see cref=”DataManagerRequest”/>
1616
/// </summary>
17-
/// <param name="dataManagerRequest">DataManagerRequest containes the information regarding paging, grouping, filtering, searching which is handled on the DataGrid component side</param>
17+
/// <param name="dataManagerRequest">DataManagerRequest containes the information regarding searching, filtering, sorting, aggregates and paging which is handled on the DataGrid component side</param>
1818
/// <returns>The data collection's type is determined by how this method has been implemented.</returns>
1919
[HttpPost]
2020
[Route("api/[controller]")]

Binding MS SQL database using UrlAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Controllers/GridController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class GridController : ControllerBase
1919
/// <summary>
2020
/// Returns the data collection as result and count after performing data operations based on request from <see cref=”DataManagerRequest”/>
2121
/// </summary>
22-
/// <param name="DataManagerRequest">DataManagerRequest contains the information regarding paging, grouping, filtering, searching which is handled on the DataGrid component side</param>
22+
/// <param name="DataManagerRequest">DataManagerRequest contains the information regarding searching, filtering, sorting, aggregates and paging which is handled on the DataGrid component side</param>
2323
/// <returns>The data collection's type is determined by how this method has been implemented.</returns>
2424
public object Post([FromBody] DataManagerRequest DataManagerRequest)
2525
{

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The [UrlAdaptor](https://blazor.syncfusion.com/documentation/data/adaptors#url-a
1010

1111
* **Using CustomAdaptor**
1212

13-
The [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/custom-binding) serves as a mediator between the UI component and the database for data binding. While the data source from the database can be directly bound to the `SfGrid` component locally using the [DataSource](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_DataSource) property, the `CustomAdaptor` approach is preferred as it allows for customization of both data operations and CRUD operations according to specific requirements. In this approach, for every action in the Blazor SfGrid component, a corresponding request with action details is sent to the `CustomAdaptor`. The Blazor DataGrid provides predefined methods such as **PerformSearching**, **PerformFiltering**, **PerformSorting**, **PerformSkip**, **PerformTake**, **PerformAggregation** and **Group** for executing these data operations. Alternatively, your own custom methods can be employed to execute operations and return the data in the `Result` and `Count` format of the `DataResult` class for display in the Blazor SfGrid component. Additionally, for CRUD operations, predefined methods can be overridden to provide custom functionality. Further details on this can be found in the latter part of the documentation.
13+
The [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/custom-binding) serves as a mediator between the UI component and the database for data binding. While the data source from the database can be directly bound to the `SfGrid` component locally using the [DataSource](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_DataSource) property, the `CustomAdaptor` approach is preferred as it allows for customization of both data operations and CRUD operations according to specific requirements. In this approach, for every action in the Blazor SfGrid component, a corresponding request with action details is sent to the `CustomAdaptor`. The Blazor DataGrid provides predefined methods such as **searching**, **filtering**, **sorting**, **aggregation**, **paging** and **grouping**. Alternatively, your own custom methods can be employed to execute operations and return the data in the `Result` and `Count` format of the `DataResult` class for display in the Blazor SfGrid component. Additionally, for CRUD operations, predefined methods can be overridden to provide custom functionality. Further details on this can be found in the latter part of the documentation.
1414

1515
![Blazor SfGrid Component](/Binding MS SQL database using CustomAdaptor/Blazor Web app/Grid_MSSQL.gif)

0 commit comments

Comments
 (0)