diff --git a/blazor/datagrid/connecting-to-ORM/dapper.md b/blazor/datagrid/connecting-to-ORM/dapper.md
index 86006974b5..365ad4fcd0 100644
--- a/blazor/datagrid/connecting-to-ORM/dapper.md
+++ b/blazor/datagrid/connecting-to-ORM/dapper.md
@@ -32,8 +32,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net8.0 or compatible | Runtime and build tools |
| SQL Server | 2019 or later | Database server |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Microsoft.Data.SqlClient | Latest | SQL Server ADO.NET provider |
| Dapper | Latest | Lightweight micro-ORM for SQL mapping |
@@ -415,7 +415,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -440,7 +440,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
```
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -449,7 +449,7 @@ The `Home.razor` component will display the reservation data in a Blazor DataGri
**Instructions:**
* Open the file named `Home.razor` in the `Components/Pages` folder.
-* Add the following code to create a DataGrid with CustomAdaptor:
+* Add the following code to create a Blazor DataGrid with CustomAdaptor:
```cshtml
@page "/"
@@ -479,16 +479,16 @@ The `Home.razor` component will display the reservation data in a Blazor DataGri
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
- **`@inject ReservationRepository`**: Injects the repository to access database methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
-The Home component has been updated successfully with DataGrid.
+The Home component has been updated successfully with Blazor DataGrid.
### Step 3: Implement the CustomAdaptor
The Blazor DataGrid can bind data from a **SQL Server** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/connecting-to-adaptors/custom-adaptor) for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -507,8 +507,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
}
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations using Dapper.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations using Dapper.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -619,7 +619,7 @@ The toolbar provides buttons for adding, editing, deleting records, and searchin
Toolbar="@ToolbarItems">
-
+
```
@@ -692,7 +692,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -764,7 +764,7 @@ public async Task> GetReservationsAsync()
**How Paging Works:**
-- The DataGrid displays 20 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 20 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -786,7 +786,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
@@ -843,10 +843,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -870,7 +870,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
* Update the `ReadAsync` method in the `CustomAdaptor` class to handle filtering:
@@ -934,7 +934,7 @@ Filtering allows the user to restrict data based on column values using a menu i
- Select filtering criteria (equals, contains, greater than, less than, etc.).
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -960,7 +960,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
* Update the `ReadAsync` method in the `CustomAdaptor` class to handle sorting:
@@ -1027,7 +1027,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
- The `DataOperations.PerformSorting()` method sorts the data based on the specified column and direction.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -1052,7 +1052,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
@@ -1141,9 +1141,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **ReservationRepository.cs** to execute SQL commands through Dapper.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **ReservationRepository.cs** to execute SQL commands through Dapper.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1172,7 +1172,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new reservations to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the SQL Server database via Dapper.
+Record insertion allows new reservations to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the SQL Server database via Dapper.
In **Home.razor**, implement the `InsertAsync` method within the `CustomAdaptor` class:
@@ -1273,13 +1273,13 @@ private int CalculateNoOfDays(DateTime checkInDate, DateTime checkOutDate)
1. The form data is collected and validated in the CustomAdaptor's `InsertAsync()` method.
2. The `ReservationRepository.AddReservationAsync()` method is called.
3. Dapper's `ExecuteAsync()` method executes the INSERT query with parameterized values.
-4. The DataGrid automatically refreshes to display the new record.
+4. The Blazor DataGrid automatically refreshes to display the new record.
Now the new reservation is persisted to the database and reflected in the grid.
**Update**
-Record modification allows reservation details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **SQL Server database** via Dapper while ensuring data integrity is preserved.
+Record modification allows reservation details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **SQL Server database** via Dapper while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method within the `CustomAdaptor` class:
@@ -1349,13 +1349,13 @@ public async Task UpdateReservationAsync(Reservation? value)
3. The `ReservationRepository.UpdateReservationAsync()` method validates the reservation exists.
4. NoOfDays and TotalAmount are recalculated based on updated dates and amounts.
5. Dapper's `ExecuteAsync()` method executes the UPDATE query with parameterized values.
-6. The DataGrid refreshes to display the updated record.
+6. The Blazor DataGrid refreshes to display the updated record.
Now modifications are synchronized to the database and reflected in the grid UI.
**Delete**
-Record deletion allows reservations to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **SQL Server DELETE** operation via Dapper, and updates both the database and the grid to reflect the removal.
+Record deletion allows reservations to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **SQL Server DELETE** operation via Dapper, and updates both the database and the grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method within the `CustomAdaptor` class:
@@ -1400,11 +1400,11 @@ public async Task RemoveReservationAsync(int? key)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `ReservationRepository.RemoveReservationAsync()` method validates the reservation exists.
5. Dapper's `ExecuteAsync()` method executes the DELETE query.
-6. The DataGrid refreshes to remove the deleted record from the UI.
+6. The Blazor DataGrid refreshes to remove the deleted record from the UI.
Now reservations are removed from the database and the grid UI reflects the changes immediately.
@@ -1449,17 +1449,17 @@ public class CustomAdaptor : DataAdaptor
}
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `ReservationRepository.UpdateReservationAsync()`.
- Each newly added record is saved using `ReservationRepository.AddReservationAsync()`.
- Each deleted record is removed using `ReservationRepository.RemoveReservationAsync()`.
- All repository operations persist changes to the SQL Server database via Dapper.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1556,7 +1556,7 @@ Here is the complete and final `Home.razor` component with all features integrat
}
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations using Dapper.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations using Dapper.
///
public class CustomAdaptor : DataAdaptor
{
@@ -1741,7 +1741,7 @@ This guide demonstrates how to:
3. Create data models for database mapping. [🔗](#step-3-create-the-data-model)
4. Configure connection strings for SQL Server. [🔗](#step-4-configure-the-connection-string)
5. Implement the repository pattern with Dapper for efficient data access. [🔗](#step-5-create-the-repository-class)
-6. Create a Blazor component with a DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
+6. Create a Blazor component with a Blazor DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
7. Handle bulk operations and batch updates. [🔗](#step-10-perform-crud-operations)
The application now provides a complete solution for managing reservation data with a modern, user-friendly interface using Dapper for high-performance database access.
\ No newline at end of file
diff --git a/blazor/datagrid/connecting-to-ORM/entityframework.md b/blazor/datagrid/connecting-to-ORM/entityframework.md
index e76083a913..cfd280e4b2 100644
--- a/blazor/datagrid/connecting-to-ORM/entityframework.md
+++ b/blazor/datagrid/connecting-to-ORM/entityframework.md
@@ -29,7 +29,7 @@ The Microsoft.EntityFrameworkCore.SqlServer package is the provider that connect
**What is UrlAdaptor?**
-UrlAdaptor is a DataManager adaptor that communicates with REST API endpoints for all grid operations. The DataGrid sends read, insert, update, delete, and batch requests to controller actions, which use Entity Framework core to access SQL Server.
+UrlAdaptor is a DataManager adaptor that communicates with REST API endpoints for all grid operations. The Blazor DataGrid sends read, insert, update, delete, and batch requests to controller actions, which use Entity Framework core to access SQL Server.
## Prerequisites
@@ -40,8 +40,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net10.0 or compatible | Runtime and build tools |
| SQL Server | 2019 or later | Database server |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Microsoft.EntityFrameworkCore | 10.0.2 | Core framework for database operations |
| Microsoft.EntityFrameworkCore.SqlServer | 10.0.2 | SQL Server provider for Entity Framework Core |
@@ -233,7 +233,7 @@ A connection string contains the information needed to connect the application t
The database connection string has been configured successfully.
-### Step 6: Create the Grid API Controller
+### Step 6: Create the Blazor Grid API Controller
A controller exposes REST API endpoints for the grid to read data. This step adds minimal `POST` endpoint that return empty results. Additional CRUD and batch endpoints will be added later when configuring UrlAdaptor.
@@ -338,7 +338,7 @@ app.Run();
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -364,7 +364,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
For this project, the **fluent** theme is used. A different theme can be selected or customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -429,7 +429,7 @@ The `Home.razor` component will display the order data in a Blazor DataGrid with
**Component Explanation:**
-- **``**: The DataGrid component that displays order data in rows and columns.
+- **``**: The Blazor DataGrid component that displays order data in rows and columns.
- **``**: Manages data communication with REST API endpoints using UrlAdaptor. The `Url` property points to the read endpoint, while `InsertUrl`, `UpdateUrl`, `RemoveUrl`, and `BatchUrl` point to CRUD endpoints.
- **`AllowPaging="true"`**: Enables pagination to display records in pages of 10 records each.
- **`AllowFiltering="true"`**: Enables column filtering with menu-based filters.
@@ -442,7 +442,7 @@ The `Home.razor` component will display the order data in a Blazor DataGrid with
- **`Toolbar`**: "Add", "Edit", "Delete", "Update", "Cancel", "Search" for CRUD and search operations.
- **``**: Displays summary calculations (Sum, Count, Average, Min, Max) in footer rows. The `` shows aggregates for each group, while `` displays aggregates for the entire grid at the bottom.
-> In **URL Adaptor**, the DataGrid component handles grouping and aggregation operations automatically.
+> In **URL Adaptor**, the Blazor DataGrid component handles grouping and aggregation operations automatically.
### Step 3: Implement the Endpoints for UrlAdaptor
@@ -588,9 +588,9 @@ The application will start, and the console will display the local URL (typicall
1. Open a web browser.
2. Navigate to the URL displayed in the console.
-3. The DataGrid application is now running and ready to use.
+3. The Blazor DataGrid application is now running and ready to use.
-
+
### Step 5: Implement Paging Feature
@@ -702,10 +702,10 @@ public object Post([FromBody] DataManagerRequest dataManagerRequest)
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the REST API.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the REST API.
- The `Post` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term across all columns.
-- Results are returned and displayed in the DataGrid with pagination applied.
+- Results are returned and displayed in the Blazor DataGrid with pagination applied.
Searching feature is now active.
@@ -783,7 +783,7 @@ public object Post([FromBody] DataManagerRequest dataManagerRequest)
- Click the "Filter" button to apply the filter.
- The `Post` method receives the filter criteria in `dataManagerRequest.Where`.
- The `DataOperations.PerformFiltering()` method applies the filter conditions to the data.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -867,7 +867,7 @@ public object Post([FromBody] DataManagerRequest dataManagerRequest)
- Click again to sort in descending order.
- The `Post` method receives the sort criteria in `dataManagerRequest.Sorted`.
- The `DataOperations.PerformSorting()` method sorts the data based on the specified column and direction.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -875,7 +875,7 @@ Sorting feature is now active.
### Step 9: Perform CRUD Operations
-CRUD operations (Create, Read, Update, Delete) enable users to manage data directly from the DataGrid. The REST API endpoints in the controller handle all database operations using Entity Framework Core.
+CRUD operations (Create, Read, Update, Delete) enable users to manage data directly from the Blazor DataGrid. The REST API endpoints in the controller handle all database operations using Entity Framework Core.
**Instructions:**
@@ -907,7 +907,7 @@ CRUD operations (Create, Read, Update, Delete) enable users to manage data direc
**Insert (Create)**
-Record insertion allows new orders to be added directly through the DataGrid component. The `Insert` endpoint processes the insertion request and saves the newly created record to the SQL Server database.
+Record insertion allows new orders to be added directly through the Blazor DataGrid component. The `Insert` endpoint processes the insertion request and saves the newly created record to the SQL Server database.
In **Controllers/GridController.cs**, the insert method is implemented as:
@@ -934,15 +934,15 @@ public void Insert([FromBody] CRUDModel value)
**What happens behind the scenes:**
1. The user clicks the "Add" button and fills in the form.
-2. The DataGrid sends a POST request to `http://localhost:5175/api/Grid/Insert`.
+2. The Blazor DataGrid sends a POST request to `http://localhost:5175/api/Grid/Insert`.
3. The `Insert` method receives the new order data in `value.Value`.
4. Entity Framework Core adds the record to the `_context.Orders` collection.
5. `SaveChanges()` persists the record to the SQL Server database.
-6. The DataGrid automatically refreshes to display the new order.
+6. The Blazor DataGrid automatically refreshes to display the new order.
**Update (Edit)**
-Record modification allows order details to be updated directly within the DataGrid. The `Update` endpoint processes the edited row and applies the changes to the SQL Server database.
+Record modification allows order details to be updated directly within the Blazor DataGrid. The `Update` endpoint processes the edited row and applies the changes to the SQL Server database.
In **Controllers/GridController.cs**, the update method is implemented as:
@@ -973,16 +973,16 @@ public void Update([FromBody] CRUDModel value)
**What happens behind the scenes:**
1. The user clicks the "Edit" button and modifies the record.
-2. The DataGrid sends a POST request to `http://localhost:5175/api/Grid/Update`.
+2. The Blazor DataGrid sends a POST request to `http://localhost:5175/api/Grid/Update`.
3. The `Update` method receives the modified order data in `value.Value`.
4. The existing order is retrieved from the database by its ID.
5. The properties are updated with the new values using `SetValues()`.
6. `SaveChanges()` persists the changes to the SQL Server database.
-7. The DataGrid refreshes to display the updated order.
+7. The Blazor DataGrid refreshes to display the updated order.
**Delete (Remove)**
-Record deletion allows orders to be removed directly from the DataGrid. The `Delete` endpoint executes the corresponding SQL Server DELETE operation and updates both the database and the grid.
+Record deletion allows orders to be removed directly from the Blazor DataGrid. The `Delete` endpoint executes the corresponding SQL Server DELETE operation and updates both the database and the grid.
In **Controllers/GridController.cs**, the delete method is implemented as:
@@ -1014,13 +1014,13 @@ public void Delete([FromBody] CRUDModel value)
**What happens behind the scenes:**
1. The user selects an order and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
-3. If confirmed, the DataGrid sends a POST request to `http://localhost:5175/api/Grid/Delete`.
+2. A confirmation dialog appears (built into the Blazor DataGrid).
+3. If confirmed, the Blazor DataGrid sends a POST request to `http://localhost:5175/api/Grid/Delete`.
4. The `Delete` method extracts the order ID from `value.Key`.
5. The order is located in the database by its ID.
6. The order is removed from the `_context.Orders` collection.
7. `SaveChanges()` executes the DELETE statement in SQL Server.
-8. The DataGrid refreshes to remove the deleted order from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted order from the UI.
**Batch Operations (Multiple CRUD in one request)**
@@ -1074,13 +1074,13 @@ public void Batch([FromBody] CRUDModel value)
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records.
+- The Blazor DataGrid collects all added, edited, and deleted records.
- All changes are sent in a single POST request to `http://localhost:5175/api/Grid/BatchUpdate`.
- The `Batch` method processes changed records using `UpdateRange()`.
- The `Batch` method processes added records using `AddRange()`.
- The `Batch` method processes deleted records using `Remove()`.
- All operations are saved to the database in a single `SaveChanges()` call for transactional consistency.
-- The DataGrid refreshes to display all changes.
+- The Blazor DataGrid refreshes to display all changes.
All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
diff --git a/blazor/datagrid/connecting-to-adaptors/custom-adaptor.md b/blazor/datagrid/connecting-to-adaptors/custom-adaptor.md
index 11aba32abe..a1013f9f97 100644
--- a/blazor/datagrid/connecting-to-adaptors/custom-adaptor.md
+++ b/blazor/datagrid/connecting-to-adaptors/custom-adaptor.md
@@ -12,7 +12,7 @@ documentation: ug
The [SfDataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) supports custom adaptors, enabling you to perform manual operations on the data. This feature is useful for implementing custom data binding and editing operations in the Blazor DataGrid.
-To implement custom data binding in the Grid, the **DataAdaptor** class is used. This abstract class serves as a base class for the custom adaptor.
+To implement custom data binding in the Blazor Grid, the **DataAdaptor** class is used. This abstract class serves as a base class for the custom adaptor.
The **DataAdaptor** abstract class includes both synchronous and asynchronous method signatures, which can be overridden in the custom adaptor. The following are the method signatures available in this class:
@@ -70,7 +70,7 @@ public abstract class DataAdaptor
}
```
-To learn more about **Custom Binding** in the Grid, watch this video:
+To learn more about **Custom Binding** in the Blazor Grid, watch this video:
{% youtube "youtube:https://www.youtube.com/watch?v=LmdUGJBUJqE" %}
@@ -178,7 +178,7 @@ The following sample code demonstrates how to implement custom data binding usin
> If the **DataManagerRequest.RequiresCounts** value is **true**, the `Read/ReadAsync` return value must be of type **DataResult** with properties **Result** (a collection of records) and **Count** (the total number of records). If the **DataManagerRequest.RequiresCounts** is **false**, simply return the collection of records.
-The following image shows the custom-bound data displayed in the Grid:
+The following image shows the custom-bound data displayed in the Blazor Grid:

@@ -469,7 +469,7 @@ You can find the complete code in the [Github](https://github.com/SyncfusionExam
## Handling searching operation
-When using a custom adaptor, the searching operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Grid action details, including search criteria.
+When using a custom adaptor, the searching operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Blazor Grid action details, including search criteria.

@@ -541,9 +541,9 @@ When using a custom adaptor, the filtering operation must be handled by overridi

-Based on these Grid action details, a custom data source can be filtered using the built-in `PerformFiltering` method of the `DataOperations` class.
+Based on these Blazor Grid action details, a custom data source can be filtered using the built-in `PerformFiltering` method of the `DataOperations` class.
-> You can also use your own method to perform the filtering operation and bind the resultant data to the Grid.
+> You can also use your own method to perform the filtering operation and bind the resultant data to the Blazor Grid.
The following sample code demonstrates how to implement the filtering operation for custom-bound data:
@@ -609,13 +609,13 @@ The following sample code demonstrates how to implement the filtering operation
## Handling sorting operation
-When using a custom adaptor, the sorting operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Grid action details, as shown in the image below:
+When using a custom adaptor, the sorting operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Blazor Grid action details, as shown in the image below:

-Based on these Grid action details, a custom data source can be sorted using the built-in `PerformSorting` method of the `DataOperations` class.
+Based on these Blazor Grid action details, a custom data source can be sorted using the built-in `PerformSorting` method of the `DataOperations` class.
-N> Alternatively, you can use your own method to perform the sorting operation and bind the resultant data to the Grid.
+N> Alternatively, you can use your own method to perform the sorting operation and bind the resultant data to the Blazor Grid.
The following sample code demonstrates how to implement the sorting operation for custom-bound data:
@@ -681,7 +681,7 @@ The following sample code demonstrates how to implement the sorting operation fo
## Handling paging operation
-When using a custom adaptor, the paging operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Grid action details, including skip and take values for paging.
+When using a custom adaptor, the paging operation must be handled by overriding the `Read` or `ReadAsync` method of the `DataAdaptor` abstract class. The `DataManagerRequest` class provides Blazor Grid action details, including skip and take values for paging.

@@ -957,14 +957,14 @@ You can find the complete code in the [Github](https://github.com/SyncfusionExam
## Handling CRUD operations
-The CRUD operations for custom-bound data in the Blazor DataGrid can be implemented by overriding the following CRUD methods of the **DataAdaptor** abstract class:
+The CRUD operations for custom-bound data in the Blazor DataTable can be implemented by overriding the following CRUD methods of the **DataAdaptor** abstract class:
* **Insert/InsertAsync**
* **Remove/RemoveAsync**
* **Update/UpdateAsync**
* **BatchUpdate/BatchUpdateAsync**
-N> When using batch editing in the Grid, use the BatchUpdate/BatchUpdateAsync method to handle the corresponding CRUD operation.
+N> When using batch editing in the Blazor Grid, use the BatchUpdate/BatchUpdateAsync method to handle the corresponding CRUD operation.
The following sample code demonstrates how to implement CRUD operations for custom-bound data:
@@ -1098,9 +1098,9 @@ The following sample code demonstrates how to implement CRUD operations for cust
}
```
-The following GIF demonstrates the CRUD operations on custom-bound data in the Grid:
+The following GIF demonstrates the CRUD operations on custom-bound data in the Blazor Grid:
-
+
You can find the complete code in the [Github](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-blazor-data-grid/tree/master/CustomAdaptor).
@@ -1110,11 +1110,11 @@ You can find the complete code in the [Github](https://github.com/SyncfusionExam
The Blazor DataGrid allows you to send custom parameters with each data request. This is particularly useful when you need to pass additional information (e.g., user role, token, or filters) to the server for enhanced processing logic.
-You can achieve this by using the [Query](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Query) property of the grid along with the `AddParams` method of the `Query` class.
+You can achieve this by using the [Query](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Query) property of the Blazor Grid along with the `AddParams` method of the `Query` class.
-To enable custom parameters in data requests for the Grid, follow these steps:
+To enable custom parameters in data requests for the Blazor Grid, follow these steps:
-1. **Bind the Query Object to the Grid:**
+1. **Bind the Query Object to the Blazor Grid:**
Assign the initialized `Query` object to the DataGrid’s `Query` property.
2. **Initialize the Query Object:**
Create a new instance of the `Query` class and use the `AddParams` method to add your custom parameters.
diff --git a/blazor/datagrid/connecting-to-adaptors/graphql-adaptor.md b/blazor/datagrid/connecting-to-adaptors/graphql-adaptor.md
index edcab51012..d0b96bd94a 100644
--- a/blazor/datagrid/connecting-to-adaptors/graphql-adaptor.md
+++ b/blazor/datagrid/connecting-to-adaptors/graphql-adaptor.md
@@ -31,8 +31,8 @@ Install the following software and packages before starting the process:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net8.0 or compatible | Runtime and build tools |
| HotChocolate.AspNetCore | 15.1 or later | GraphQL server framework |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid component |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid component |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid |
## Setting Up the GraphQL Backend
@@ -44,13 +44,13 @@ For this guide, a Blazor application named **Grid_GraphQLAdaptor** has been crea
**Install NuGet Packages**
-NuGet packages are software libraries that add functionality to applications. The following packages enable GraphQL server functionality+ and DataGrid components.
+NuGet packages are software libraries that add functionality to applications. The following packages enable GraphQL server functionality+ and Blazor DataGrid components.
**Required Packages:**
- **HotChocolate.AspNetCore** (version 15.1 or later) - GraphQL server framework
-- **Syncfusion.Blazor.Grid** (version {{site.blazorversion}}) - DataGrid component
-- **Syncfusion.Blazor.Themes** (version {{site.blazorversion}}) - Styling for DataGrid
+- **Syncfusion.Blazor.Grid** (version {{site.blazorversion}}) - Blazor DataGrid component
+- **Syncfusion.Blazor.Themes** (version {{site.blazorversion}}) - Styling for Blazor DataGrid
**Method 1: Using Package Manager Console**
@@ -296,7 +296,7 @@ public class GraphQLQuery
// Retrieve all expense records from the data source.
List dataSource = ExpenseRecord.GetAllRecords();
- // Apply search, filter, sort, and paging operations as provided by the DataGrid.
+ // Apply search, filter, sort, and paging operations as provided by the Blazor DataGrid.
// Operations are applied sequentially: search → filter → sort → paging.
// Store the total count before paging.
@@ -323,9 +323,9 @@ public class ExpenseRecordDataResponse
**Details:**
-- The `GetExpenseRecordData` method receives `DataManagerRequestInput`, which contains filter, sort, search, and paging parameters from the DataGrid
+- The `GetExpenseRecordData` method receives `DataManagerRequestInput`, which contains filter, sort, search, and paging parameters from the Blazor DataGrid
- Hot Chocolate automatically converts the method name `GetExpenseRecordData` to camelCase: `expenseRecordData` in the GraphQL schema
-- The response must contain `Count` (total records) and `Result` (current page data) for the DataGrid to process pagination
+- The response must contain `Count` (total records) and `Result` (current page data) for the Blazor DataGrid to process pagination
The query resolver has been created successfully.
@@ -336,7 +336,7 @@ The query resolver has been created successfully.
A **DataManagerRequestInput** class is a GraphQL input type that represents all the parameters the [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) sends to the backend when requesting data. This class acts as a container for filtering, sorting, searching, paging, and other data operation parameters.
**Purpose**
-When the DataGrid performs operations like pagination, sorting, filtering, or searching, it packages all these parameters into a `DataManagerRequestInput` object and sends it to the GraphQL backend. The backend then uses these parameters to fetch and return only the data the grid needs.
+When the Blazor DataGrid performs operations like pagination, sorting, filtering, or searching, it packages all these parameters into a `DataManagerRequestInput` object and sends it to the GraphQL backend. The backend then uses these parameters to fetch and return only the data the Blazor Grid needs.
**Instructions**:
@@ -488,7 +488,7 @@ public class WhereFilter
**Understanding the DataManagerRequestInput Class**
-**Example Scenario:** A sequence of operations is performed on the DataGrid as follows:
+**Example Scenario:** A sequence of operations is performed on the Blazor DataGrid as follows:
- Searches for **"Finance"** in the Department column.
- Filters for amounts greater than 1000.
@@ -570,13 +570,13 @@ namespace Grid_GraphQLAdaptor.Models
{
///
/// GraphQL Mutation class that handles all write operations (Create, Update, Delete).
- /// Each method is a resolver that processes data modification requests from the DataGrid.
+ /// Each method is a resolver that processes data modification requests from the Blazor DataGrid.
///
public class GraphQLMutation
{
///
/// Mutation resolver for creating a new expense record.
- /// Called when a user clicks the "Add" button in the DataGrid and submits a new record.
+ /// Called when a user clicks the "Add" button in the Blazor DataGrid and submits a new record.
///
public ExpenseRecord CreateExpense(
ExpenseRecord record,
@@ -622,7 +622,7 @@ namespace Grid_GraphQLAdaptor.Models
A mutation resolver is a C# method decorated with GraphQL attributes that:
-- **Receives input parameters** from the DataGrid (record data, primary keys, etc.).
+- **Receives input parameters** from the Blazor DataGrid (record data, primary keys, etc.).
- **Processes the operation** (validation, calculation, data modification).
- **Persists changes** to the data source (database, file, memory).
- **Returns results** to the client (modified record or success/failure status).
@@ -635,7 +635,7 @@ The GraphQL Mutation class has been successfully created and is ready to handle
### Step 1: Install and Configure Blazor DataGrid Components with GraphQL
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -664,7 +664,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
```
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component’s [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component’s [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -673,7 +673,7 @@ The `Home.razor` component will display the expense data in a Blazor DataGrid wi
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Add the following code to create a basic DataGrid:
+2. Add the following code to create a basic Blazor DataGrid:
```cshtml
@page "/"
@@ -710,13 +710,13 @@ The `Home.razor` component will display the expense data in a Blazor DataGrid wi
**Component Explanation:**
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
-- **``**: Enable editing functionality directly within the Grid by setting the AllowEditing, AllowAdding, and AllowDeleting properties within the GridEditSettings to **true**.
+- **``**: Enable editing functionality directly within the Blazor Grid by setting the AllowEditing, AllowAdding, and AllowDeleting properties within the GridEditSettings to **true**.
- **``**: Allows customization of the default dialog editing behavior by defining custom editors for grid rows within a dialog..
-The `SfDataManager` component connects the DataGrid to the GraphQL backend using the adaptor options configured below:
+The `SfDataManager` component connects the Blazor DataGrid to the GraphQL backend using the adaptor options configured below:
```cshtml
- /// GraphQLAdaptorOptions configures how the DataGrid communicates with the GraphQL backend.
+ /// GraphQLAdaptorOptions configures how the Blazor DataGrid communicates with the GraphQL backend.
/// This object contains the query, mutation operations, and endpoint URL.
///
private GraphQLAdaptorOptions adaptorOptions = new GraphQLAdaptorOptions
@@ -877,7 +877,7 @@ result {
```
- `count` - Returns total number of records (used for pagination)
- Example: If 500 total expense records exist, count = 500
- - DataGrid uses this to calculate how many pages exist
+ - Blazor DataGrid uses this to calculate how many pages exist
- `result` - Contains the array of expense records
- `{ ... }` - List of fields to return for each record
- Each field must exist in the ExpenseRecord class
@@ -966,7 +966,7 @@ The toolbar provides buttons for adding, editing, deleting records, and searchin
Toolbar="@ToolbarItems">
-
+
```
@@ -1024,7 +1024,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
AllowPaging="true">
-
+
```
@@ -1080,7 +1080,7 @@ public static List GetAllRecords()
**How Paging Variables are Passed:**
-When the grid requests a specific page, it automatically sends:
+When the Blazor Grid requests a specific page, it automatically sends:
```json
{
"dataManager": {
@@ -1109,7 +1109,7 @@ Searching provides the capability to find specific records by entering keywords
Toolbar="@ToolbarItems">
-
+
```
@@ -1158,7 +1158,7 @@ public class GraphQLQuery
**How Search Variables are Passed:**
-When search text is entered, the DataGrid automatically sends:
+When search text is entered, the Blazor DataGrid automatically sends:
```json
{
"dataManager": {
@@ -1196,7 +1196,7 @@ Sorting enables organizing records by selecting column headers, arranging the da
Toolbar="@ToolbarItems">
-
+
```
@@ -1247,7 +1247,7 @@ public class GraphQLQuery
**How Sort Variables are Passed:**
-When a column header is selected for sorting, the DataGrid automatically sends:
+When a column header is selected for sorting, the Blazor DataGrid automatically sends:
```json
{
"dataManager": {
@@ -1284,7 +1284,7 @@ The backend resolver receives this and processes the sort specification in the `
-
+
```
@@ -1424,7 +1424,7 @@ The backend resolver receives this and processes the sort specification in the `
**How Filter Variables are Passed:**
- When filter conditions are applied, the DataGrid automatically sends:
+ When filter conditions are applied, the Blazor DataGrid automatically sends:
```json
{
"dataManager": {
@@ -1494,13 +1494,13 @@ Grouping enables organizing and displaying records based on column values. This
-
+
```
**Group Caption Customization:**
-The `` in the grid allows customization of group header text. Access group metadata using `CaptionTemplateContext`:
+The `` in the Blazor Grid allows customization of group header text. Access group metadata using `CaptionTemplateContext`:
| Property | Purpose | Example |
|----------|---------|---------|
@@ -1565,7 +1565,7 @@ public class GraphQLQuery
**How Group Variables are Passed:**
-When a column header is dragged into the grouping area, the DataGrid automatically sends:
+When a column header is dragged into the grouping area, the Blazor DataGrid automatically sends:
```json
{
"dataManager": {
@@ -1592,15 +1592,15 @@ When multiple data operations are combined with grouping:
This sequence ensures optimal performance and predictable results.
-The backend resolver receives the group specifications in the `GetExpenseRecordData` method and sorts the data accordingly, enabling the DataGrid to display properly grouped records. Grouping feature is now active.
+The backend resolver receives the group specifications in the `GetExpenseRecordData` method and sorts the data accordingly, enabling the Blazor DataGrid to display properly grouped records. Grouping feature is now active.
---
### Perform CRUD Operations
- CRUD operations (Create, Read, Update, Delete) provide complete data‑management capabilities within the DataGrid. The DataGrid offers built‑in dialogs and action buttons to perform these operations, while backend resolvers execute the corresponding data modifications.
+ CRUD operations (Create, Read, Update, Delete) provide complete data‑management capabilities within the Blazor DataGrid. The Blazor Grid offers built‑in dialogs and action buttons to perform these operations, while backend resolvers execute the corresponding data modifications.
- Add the Grid `GridEditSettings` and `Toolbar` configuration to enable create, read, update, and delete (CRUD) operations.
+ Add the Blazor Grid `GridEditSettings` and `Toolbar` configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1626,7 +1626,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
- The Insert operation enables adding new expense records to the system. When the Add button in the toolbar is selected, the DataGrid displays a dialog containing the required input fields. After the data is entered and submitted, a GraphQL mutation transmits the new record to the backend for creation.
+ The Insert operation enables adding new expense records to the system. When the Add button in the toolbar is selected, the Blazor DataGrid displays a dialog containing the required input fields. After the data is entered and submitted, a GraphQL mutation transmits the new record to the backend for creation.
**Instructions:**
@@ -1795,7 +1795,7 @@ Add the toolbar items list in the `@code` block:
| `record` | `ExpenseRecord` | The new expense record object with all field values | Expense data filled in the dialog |
| `index` | `int` | The position where the new record should be inserted (0 = top) | `0` for insert at beginning, `-1` or higher than count for append |
| `action` | `string` | Type of action being performed (usually "add" for insert) | `"add"` |
- | `additionalParameters` | `Any` | Extra context or custom parameters from the DataGrid | Empty object `{}` or additional metadata |
+ | `additionalParameters` | `Any` | Extra context or custom parameters from the Blazor DataGrid | Empty object `{}` or additional metadata |
**Backend Response:**
@@ -1830,7 +1830,7 @@ Add the toolbar items list in the `@code` block:
```
**Update**
-The Update operation enables modifying existing expense records. When the Edit action is selected from the toolbar and a row is chosen, the DataGrid displays a dialog populated with the current record values. After the data is updated and the form is submitted, a GraphQL mutation transmits the modified record to the backend for processing.
+The Update operation enables modifying existing expense records. When the Edit action is selected from the toolbar and a row is chosen, the Blazor DataGrid displays a dialog populated with the current record values. After the data is updated and the form is submitted, a GraphQL mutation transmits the modified record to the backend for processing.
**Instructions:**
@@ -1984,7 +1984,7 @@ mutation update($record: ExpenseRecordInput!, $action: String!, $primaryColumnNa
| `action` | `string` | Type of action being performed (usually "save" for update) | `"save"` |
| `primaryColumnName` | `string` | Name of the primary key column used to identify the record | `"ExpenseId"` |
| `primaryColumnValue` | `string` | Value of the primary key to locate which record to update | `"EXP1001"` |
-| `additionalParameters` | `Any` | Extra context or custom parameters from the DataGrid | Empty object `{}` or additional metadata |
+| `additionalParameters` | `Any` | Extra context or custom parameters from the Blazor DataGrid | Empty object `{}` or additional metadata |
**Backend Response:**
@@ -2100,7 +2100,7 @@ mutation delete($primaryColumnValue: String!, $additionalParameters: Any) {
| Parameter | Type | Purpose | Example |
|-----------|------|---------|---------|
| `primaryColumnValue` | `string` | Value of the primary key identifying which record to delete | `"EXP1001"` |
-| `additionalParameters` | `Any` | Extra context or custom parameters from the DataGrid | Empty object `{}` or additional metadata |
+| `additionalParameters` | `Any` | Extra context or custom parameters from the Blazor DataGrid | Empty object `{}` or additional metadata |
**Backend Response:**
@@ -2362,6 +2362,6 @@ This guide demonstrates how to:
6. Create the DataManagerRequestInput input type to carry grid operations. [🔗](#step-6-create-the-datamanagerrequestinput-class)
7. Define GraphQL mutation resolvers for Create, Update, and Delete. [🔗](#step-7-define-graphql-mutation-resolvers)
8. Integrate Blazor DataGrid and configure the GraphQL adaptor. [🔗](#step-3-configure-graphql-adaptor-and-data-binding)
-9. Perform CRUD operations from the grid using GraphQL mutations. [🔗](#perform-crud-operations)
+9. Perform CRUD operations from the Blazor Grid using GraphQL mutations. [🔗](#perform-crud-operations)
The application now provides a complete solution for managing expenses with a modern [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) integrated with a Hot Chocolate GraphQL backend.
diff --git a/blazor/datagrid/connecting-to-adaptors/odatav4-adaptor.md b/blazor/datagrid/connecting-to-adaptors/odatav4-adaptor.md
index 97a3fbaa38..a13d199c06 100644
--- a/blazor/datagrid/connecting-to-adaptors/odatav4-adaptor.md
+++ b/blazor/datagrid/connecting-to-adaptors/odatav4-adaptor.md
@@ -10,7 +10,7 @@ documentation: ug
# OData V4 Service in Blazor Data Grid
-The [ODataV4Adaptor](https://blazor.syncfusion.com/documentation/data/adaptors#odatav4-adaptor) in the [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) enables seamless integration of the Grid with OData V4 services, facilitating efficient data fetching and manipulation. This guide provides detailed instructions for binding data and performing CRUD (Create, Read, Update, and Delete) actions using the `ODataV4Adaptor` in your Blazor DataGrid.
+The [ODataV4Adaptor](https://blazor.syncfusion.com/documentation/data/adaptors#odatav4-adaptor) in the [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) enables seamless integration of the Blazor Grid with OData V4 services, facilitating efficient data fetching and manipulation. This guide provides detailed instructions for binding data and performing CRUD (Create, Read, Update, and Delete) actions using the `ODataV4Adaptor` in your Blazor DataGrid.
## Configuring an OData V4 Service
@@ -503,9 +503,9 @@ builder.Services.AddControllers().AddOData(
## Handling CRUD operations
-To manage CRUD (Create, Read, Update, and Delete) operations using the ODataV4Adaptor, follow the provided guide for configuring the DataGrid for [editing](https://blazor.syncfusion.com/documentation/datagrid/editing) and utilize the sample implementation of the `GridController` in your server application. This controller handles HTTP requests for CRUD operations, including GET, POST, PATCH, and DELETE.
+To manage CRUD (Create, Read, Update, and Delete) operations using the ODataV4Adaptor, follow the provided guide for configuring the Blazor DataGrid for [editing](https://blazor.syncfusion.com/documentation/datagrid/editing) and utilize the sample implementation of the `GridController` in your server application. This controller handles HTTP requests for CRUD operations, including GET, POST, PATCH, and DELETE.
-To enable CRUD operations in the Grid within your application, follow these steps. In the example below, the inline edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) is enabled, and the [Toolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Toolbar) property is configured to display toolbar items for editing.
+To enable CRUD operations in the Blazor Grid within your application, follow these steps. In the example below, the inline edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) is enabled, and the [Toolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Toolbar) property is configured to display toolbar items for editing.
{% tabs %}
{% highlight razor tabtitle="Index.razor" %}
@@ -528,11 +528,11 @@ To enable CRUD operations in the Grid within your application, follow these step
{% endhighlight %}
{% endtabs %}
-> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Grid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Grid column, ensuring that its value is unique.
+> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Blazor Grid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Blazor Grid column, ensuring that its value is unique.
**Insert Record:**
-To insert a new record into your DataGrid, you can utilize the `HttpPost` method in your server application. Below is a sample implementation of inserting a record using the **GridController**:
+To insert a new record into your Blazor DataGrid, you can utilize the `HttpPost` method in your server application. Below is a sample implementation of inserting a record using the **GridController**:
{% tabs %}
{% highlight cs tabtitle="GridController.cs" %}
@@ -566,7 +566,7 @@ public IActionResult Post([FromBody] OrdersDetails addRecord)
**Update Record:**
-Updating a record in the DataGrid can be achieved by utilizing the `HttpPatch` method in your controller. Here's a sample implementation of updating a record:
+Updating a record in the Blazor DataGrid can be achieved by utilizing the `HttpPatch` method in your controller. Here's a sample implementation of updating a record:
{% tabs %}
{% highlight cs tabtitle="GridController.cs" %}
@@ -609,7 +609,7 @@ public IActionResult Patch(int key, [FromBody] OrdersDetails updateRecord)
**Delete Record:**
-To delete a record from your DataGrid, you can utilize the `HttpDelete` method in your controller. Below is a sample implementation:
+To delete a record from your Blazor DataGrid, you can utilize the `HttpDelete` method in your controller. Below is a sample implementation:
{% tabs %}
{% highlight cs tabtitle="GridController.cs" %}
diff --git a/blazor/datagrid/connecting-to-adaptors/url-adaptor.md b/blazor/datagrid/connecting-to-adaptors/url-adaptor.md
index 038fb62a4b..58cf974595 100644
--- a/blazor/datagrid/connecting-to-adaptors/url-adaptor.md
+++ b/blazor/datagrid/connecting-to-adaptors/url-adaptor.md
@@ -535,11 +535,11 @@ public object Post([FromBody] DataManagerRequest DataManagerRequest)
## Handling CRUD operations
-The Blazor DataGrid seamlessly integrates CRUD (Create, Read, Update, and Delete) operations with server-side controller actions through specific properties: [InsertUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_InsertUrl), [RemoveUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_RemoveUrl), [UpdateUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_UpdateUrl), [CrudUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_CrudUrl), and [BatchUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_BatchUrl). These properties enable the Grid to communicate with the data service for every Grid action, facilitating server-side operations.
+The Blazor DataGrid seamlessly integrates CRUD (Create, Read, Update, and Delete) operations with server-side controller actions through specific properties: [InsertUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_InsertUrl), [RemoveUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_RemoveUrl), [UpdateUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_UpdateUrl), [CrudUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_CrudUrl), and [BatchUrl](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManager.html#Syncfusion_Blazor_DataManager_BatchUrl). These properties enable the Blazor Grid to communicate with the data service for every Blazor Grid action, facilitating server-side operations.
**CRUD Operations Mapping**
-CRUD operations within the Grid can be mapped to server-side controller actions using specific properties:
+CRUD operations within the Blazor Grid can be mapped to server-side controller actions using specific properties:
1. **InsertUrl**: Specifies the URL for inserting new data.
2. **RemoveUrl**: Specifies the URL for removing existing data.
@@ -570,7 +570,7 @@ To enable editing in Blazor DataGrid, refer to the editing [documentation](https
{% endhighlight %}
{% endtabs %}
-> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Grid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Grid column, ensuring that its value is unique.
+> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Blazor Grid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Blazor Grid column, ensuring that its value is unique.
The below class is used to structure data sent during CRUD operations.
@@ -763,7 +763,7 @@ To perform batch operation, define the edit [Mode](https://help.syncfusion.com/c
{% highlight cs tabtitle="GridController.cs" %}
///
-/// Handles CRUD operations when batch editing is enabled in the DataGrid.
+/// Handles CRUD operations when batch editing is enabled in the Blazor DataGrid.
///
/// The batch model containing the data changes to be processed.
/// Returns the result of the CRUD operation.
diff --git a/blazor/datagrid/connecting-to-adaptors/web-api-adaptor.md b/blazor/datagrid/connecting-to-adaptors/web-api-adaptor.md
index 2a07fc1640..81e53b679a 100644
--- a/blazor/datagrid/connecting-to-adaptors/web-api-adaptor.md
+++ b/blazor/datagrid/connecting-to-adaptors/web-api-adaptor.md
@@ -375,7 +375,7 @@ public object GetOrderData()
{% endhighlight %}
{% endtabs %}
-> This example demonstrates a custom way of handling the `$filter` query sent by the Grid. You can also handle it using your own logic based on the query string format or use dynamic expression evaluation libraries for a more generic approach..
+> This example demonstrates a custom way of handling the `$filter` query sent by the Blazor Grid. You can also handle it using your own logic based on the query string format or use dynamic expression evaluation libraries for a more generic approach..
## Handling filtering operation
@@ -649,15 +649,15 @@ public object GetOrderData()
{% endhighlight %}
{% endtabs %}
-> Always calculate the total record count before applying paging. This ensures that the Grid can display the correct total number of records for pagination.
+> Always calculate the total record count before applying paging. This ensures that the Blazor Data Table can display the correct total number of records for pagination.
N> If you want to handle filtering, sorting, and paging operations using Dynamic LINQ Expressions, you can refer to this [GitHub repository](https://github.com/SyncfusionExamples/blazor-datagrid-data-operations-in-wep-api-service) for an example of how to implement it dynamically.
## Handling CRUD operations
-To manage CRUD (Create, Read, Update, and Delete) operations using the WebApiAdaptor in Blazor DataGrid, follow the provided guide for configuring the Grid for [editing](https://blazor.syncfusion.com/documentation/datagrid/editing) and utilize the sample implementation of the `GridController` in your server application. This controller handles HTTP requests for CRUD operations such as **GET, POST, PUT,** and **DELETE**.
+To manage CRUD (Create, Read, Update, and Delete) operations using the WebApiAdaptor in Blazor DataGrid, follow the provided guide for configuring the Blazor Grid for [editing](https://blazor.syncfusion.com/documentation/datagrid/editing) and utilize the sample implementation of the `GridController` in your server application. This controller handles HTTP requests for CRUD operations such as **GET, POST, PUT,** and **DELETE**.
-To enable CRUD operations in the Grid, follow the steps below:
+To enable CRUD operations in the Blazor Grid, follow the steps below:
{% tabs %}
{% highlight razor tabtitle="Index.razor" %}
@@ -680,11 +680,11 @@ To enable CRUD operations in the Grid, follow the steps below:
{% endhighlight %}
{% endtabs %}
-> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Grid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Grid column, ensuring that its value is unique.
+> Normal/Inline editing is the default edit [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridEditSettings.html#Syncfusion_Blazor_Grids_GridEditSettings_Mode) for the Blazor DataGrid. To enable CRUD operations, ensure that the [IsPrimaryKey](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridColumn.html#Syncfusion_Blazor_Grids_GridColumn_IsPrimaryKey) property is set to **true** for a specific Blazor Grid column, ensuring that its value is unique.
**Insert operation:**
-To insert a new record into your Grid, you can utilize the `HttpPost` method in your server application. The details of the newly added record are passed to the **newRecord** parameter. Below is a sample implementation of inserting a record using the **GridController**:
+To insert a new record into your Blazor Grid, you can utilize the `HttpPost` method in your server application. The details of the newly added record are passed to the **newRecord** parameter. Below is a sample implementation of inserting a record using the **GridController**:

@@ -707,7 +707,7 @@ public void Post([FromBody] OrdersDetails newRecord)
**Update operation:**
-Updating a record in the Grid can be achieved by utilizing the `HttpPut` method in your controller. The details of the updated record are passed to the **updatedRecord** parameter. Here's a sample implementation of updating a record:
+Updating a record in the Blazor Grid can be achieved by utilizing the `HttpPut` method in your controller. The details of the updated record are passed to the **updatedRecord** parameter. Here's a sample implementation of updating a record:

@@ -739,7 +739,7 @@ public void Put([FromBody] OrdersDetails updatedRecord)
**Delete operation:**
-To delete a record from your Grid, you can use the `HttpDelete` method in your controller. The primary key value of the deleted record is passed to the **deletedRecord** parameter.Below is a sample implementation:
+To delete a record from your Blazor Grid, you can use the `HttpDelete` method in your controller. The primary key value of the deleted record is passed to the **deletedRecord** parameter.Below is a sample implementation:

diff --git a/blazor/datagrid/connecting-to-backends/elasticsearch.md b/blazor/datagrid/connecting-to-backends/elasticsearch.md
index 73fad78097..2e626f0c57 100644
--- a/blazor/datagrid/connecting-to-backends/elasticsearch.md
+++ b/blazor/datagrid/connecting-to-backends/elasticsearch.md
@@ -40,8 +40,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | 10.0 or compatible | Runtime and build tools |
| Elasticsearch | 9.3.0 or later | Search and analytics engine |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Elastic.Clients.Elasticsearch | 9.3.0 or later | Official C# client for Elasticsearch |
## Setting Up Elasticsearch
@@ -754,7 +754,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid for displaying data in table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid for displaying data in table format.
**Instructions:**
@@ -790,7 +790,7 @@ The `Home.razor` component displays inventory data in a Blazor DataGrid with sea
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Add the following code to create a basic DataGrid:
+2. Add the following code to create a basic Blazor DataGrid:
```cshtml
@page "/"
@@ -824,13 +824,13 @@ The `Home.razor` component displays inventory data in a Blazor DataGrid with sea
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
- **`@inject InventoryRepository`**: Injects the repository to access Elasticsearch methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Connects the DataGrid to the CustomAdaptor for data retrieval and CRUD operations.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Connects the Blazor DataGrid to the CustomAdaptor for data retrieval and CRUD operations.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
- **`Toolbar`**: Update the `` component to include the [Toolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Toolbar) property with CRUD and search options which provides buttons for adding, editing, deleting records, and searching the data.
-The Home component has been updated successfully with a basic DataGrid.
+The Home component has been updated successfully with a basic Blazor DataGrid.
---
@@ -838,7 +838,7 @@ The Home component has been updated successfully with a basic DataGrid.
The Blazor DataGrid can bind data from **Elasticsearch** using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/connecting-to-adaptors/custom-adaptor) for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and Elasticsearch. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and Elasticsearch. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations.
**Instructions:**
@@ -937,7 +937,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
AllowPaging="true">
-
+
```
@@ -958,7 +958,7 @@ public async Task SearchAndFilterAsync(DataManagerRequest dm)
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow movement between pages.
- The `ReadAsync` method receives skip and take values in the `DataManagerRequest`.
- The `From(dm.Skip)` method skips the specified number of records.
@@ -981,7 +981,7 @@ Searching allows the user to find records by entering keywords in the search box
-
+
@code {
private List ToolbarItems = new List { "Search"};
@@ -1191,12 +1191,12 @@ private static Query BuildLeafQuery(string field, string? op, object? value, boo
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The repository's `SearchAndFilterAsync` method processes search through `BuildEsQueryFromDm` method.
- `BuildEsQueryFromDm` calls `BuildLeafQuery` for each search field to create specific query objects.
- The search term is converted into Elasticsearch queries appropriate to each field type.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -1218,7 +1218,7 @@ Filtering allows the user to restrict data based on column values using a filter
-
+
```
@@ -1261,7 +1261,7 @@ private static QueryDescriptor BuildEsQueryFromDm(QueryDescripto
**Explanation of `BuildEsQueryFromDm` Filtering Logic:**
-- **`dm.Where`**: Contains all filter criteria specified by the user through the DataGrid filter menu.
+- **`dm.Where`**: Contains all filter criteria specified by the user through the Blazor DataGrid filter menu.
- **`BuildWhereQuery`**: Converts the list of `WhereFilter` objects into an Elasticsearch Bool query.
- **`must` List**: Accumulates filters with AND logic. All filters must be satisfied for a document to match.
- **BoolQuery**: Creates an Elasticsearch Bool query with all filters combined using `Must` clause.
@@ -1312,10 +1312,10 @@ private static Query? BuildWhereNode(WhereFilter node)
**Explanation of `BuildWhereQuery` Method:**
-**Purpose**: Converts a list of filter criteria from the DataGrid into an Elasticsearch Bool query with AND logic (all filters must be satisfied).
+**Purpose**: Converts a list of filter criteria from the Blazor DataGrid into an Elasticsearch Bool query with AND logic (all filters must be satisfied).
**Parameters**:
-- **`nodes`**: List of `WhereFilter` objects representing individual or grouped filter criteria from the DataGrid filter menu
+- **`nodes`**: List of `WhereFilter` objects representing individual or grouped filter criteria from the Blazor DataGrid filter menu
**Process**:
1. Validates that the nodes list exists and contains filter criteria
@@ -1354,7 +1354,7 @@ private static Query? BuildWhereNode(WhereFilter node)
**How Filtering works**:
1. User opens filter menu and selects conditions (e.g., Category = "Electronics" AND UnitPrice > 100)
-2. DataGrid sends filter criteria via `dataManagerRequest.Where`
+2. Blazor DataGrid sends filter criteria via `dataManagerRequest.Where`
3. `SearchAndFilterAsync` calls `BuildEsQueryFromDm` with the DataManagerRequest
4. `BuildEsQueryFromDm` checks `dm.Where` and calls `BuildWhereQuery` to process filters
5. `BuildWhereQuery` iterates through filter list and calls `BuildWhereNode` for each filter
@@ -1381,7 +1381,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1442,10 +1442,10 @@ private static List BuildEsSorts(List? sorted)
**Explanation of `BuildEsSorts` Method:**
-**Purpose**: Converts DataGrid sort criteria into Elasticsearch sort options that specify field names and sort direction (ascending/descending).
+**Purpose**: Converts Blazor DataGrid sort criteria into Elasticsearch sort options that specify field names and sort direction (ascending/descending).
**Parameters**:
-- **`sorted`**: List of `Sort` objects from DataGrid containing column name and sort direction (e.g., "Ascending" or "Descending")
+- **`sorted`**: List of `Sort` objects from Blazor DataGrid containing column name and sort direction (e.g., "Ascending" or "Descending")
**Process**:
@@ -1458,7 +1458,7 @@ private static List BuildEsSorts(List? sorted)
3. **Reverse Iteration** (`for (int i = sorted.Count() - 1; i >= 0; i--)`):
- Iterates through sort list in reverse order
- Maintains multi-level sort priority (last sort becomes highest priority in Elasticsearch)
- - This matches DataGrid's sort priority convention
+ - This matches Blazor DataGrid's sort priority convention
4. **Field Mapping** (`MapToKeywordOrSelf`):
- Text fields map to `.keyword` subfield for exact sorting (e.g., `itemName.keyword`)
@@ -1479,7 +1479,7 @@ private static List BuildEsSorts(List? sorted)
**How Sorting Works:**
- User clicks on a column header to sort by that column
-- DataGrid sends sort criteria via `dataManagerRequest.Sorted` containing column name and direction
+- Blazor DataGrid sends sort criteria via `dataManagerRequest.Sorted` containing column name and direction
- `SearchAndFilterAsync` calls `BuildEsSorts(dm.Sorted)` to convert sort criteria
- `BuildEsSorts` processes each sort criterion:
- Maps field name to appropriate Elasticsearch field (with keyword subfield if needed)
@@ -1487,7 +1487,7 @@ private static List BuildEsSorts(List? sorted)
- Creates `SortOptions` for each sort criterion
- All sort options are added to the Elasticsearch search query via `Sort`method
- Elasticsearch returns results sorted by the specified fields in the specified order
-- Results are displayed in the DataGrid in sorted order
+- Results are displayed in the Blazor DataGrid in sorted order
Sorting feature is now active.
@@ -1495,13 +1495,13 @@ Sorting feature is now active.
### Step 9: Implement Aggregations Feature
-Aggregations allow the display of calculated values (sum, average, count, etc.) for columns in the DataGrid footer.
+Aggregations allow the display of calculated values (sum, average, count, etc.) for columns in the Blazor DataGrid footer.
**Instructions:**
-* Aggregations are configured in the `` section of the DataGrid component.
+* Aggregations are configured in the `` section of the Blazor DataGrid component.
-**DataGrid Configuration with Aggregations:**
+**Blazor DataGrid Configuration with Aggregations:**
```cshtml
@@ -1522,7 +1522,7 @@ Aggregations allow the display of calculated values (sum, average, count, etc.)
-
+
```
@@ -1647,11 +1647,11 @@ private static IDictionary ExtractAggregatesFromResponse(IReadOn
**Explanation of `BuildEsAggregations` Method:**
-**Purpose**: Converts DataGrid aggregation requests into Elasticsearch aggregation queries that calculate statistics (sum, average, count, etc.) on specified fields.
+**Purpose**: Converts Blazor DataGrid aggregation requests into Elasticsearch aggregation queries that calculate statistics (sum, average, count, etc.) on specified fields.
**Parameters**:
- **`aggregations`**: Elasticsearch fluent aggregation builder object to accumulate aggregation clauses
-- **`aggregates`**: List of `Aggregate` objects from DataGrid containing field name and aggregation type
+- **`aggregates`**: List of `Aggregate` objects from Blazor DataGrid containing field name and aggregation type
**Process**:
@@ -1675,7 +1675,7 @@ private static IDictionary ExtractAggregatesFromResponse(IReadOn
**Explanation of `ExtractAggregatesFromResponse` Method:**
-**Purpose**: Extracts numeric results from Elasticsearch aggregation responses and converts them to format expected by DataGrid footer display.
+**Purpose**: Extracts numeric results from Elasticsearch aggregation responses and converts them to format expected by Blazor DataGrid footer display.
**Parameters**:
- **`esAggregations`**: Read-only dictionary of aggregation results from Elasticsearch response containing aggregation names and their computed values
@@ -1715,8 +1715,8 @@ private static IDictionary ExtractAggregatesFromResponse(IReadOn
**How Aggregations Work:**
-1. User configures aggregations in DataGrid footer via ``
-2. DataGrid sends aggregation requests via `dataManagerRequest.Aggregates`
+1. User configures aggregations in Blazor DataGrid footer via ``
+2. Blazor DataGrid sends aggregation requests via `dataManagerRequest.Aggregates`
3. `SearchAndFilterAsync` calls `BuildEsAggregations` to create Elasticsearch aggregation clauses
4. `BuildEsAggregations` adds appropriate aggregation based on type:
- Maps field name using `GetJsonPropertyName`
@@ -1728,7 +1728,7 @@ private static IDictionary ExtractAggregatesFromResponse(IReadOn
- Extracts numeric value from appropriate property
- Builds dictionary with aggregation names and values
7. Results returned in `DataResult.Aggregates` property
-8. DataGrid displays aggregated values in footer row
+8. Blazor DataGrid displays aggregated values in footer row
Aggregations feature is now active.
@@ -1736,14 +1736,14 @@ Aggregations feature is now active.
### Step 10: Perform CRUD Operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding methods in **InventoryRepository.cs** to execute Elasticsearch operations.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding methods in **InventoryRepository.cs** to execute Elasticsearch operations.
**Add Toolbar Configuration:**
```cshtml
-
+
@code {
@@ -1753,7 +1753,7 @@ CustomAdaptor methods enable users to create, read, update, and delete records d
**Insert**
-Record insertion allows new inventory items to be added directly through the DataGrid.
+Record insertion allows new inventory items to be added directly through the Blazor DataGrid.
In **Home.razor**, implement the `InsertAsync` method within the `CustomAdaptor` class:
@@ -1815,18 +1815,18 @@ private async Task GetNextItemIdAsync()
**How Insert Works:**
-- User clicks "Add" button in DataGrid toolbar
+- User clicks "Add" button in Blazor DataGrid toolbar
- New empty row appears for data entry
- User fills in inventory details and clicks "Update"
- `InsertAsync` method is triggered with the new item data
- `AddInventoryItemAsync` generates next ID using `GetNextItemIdAsync`
- Item is indexed in Elasticsearch using `IndexAsync`
- Index is refreshed to make the new item immediately searchable
-- New item appears in DataGrid
+- New item appears in Blazor DataGrid
**Update**
-Record modification allows inventory item details to be updated directly within the DataGrid.
+Record modification allows inventory item details to be updated directly within the Blazor DataGrid.
In **Home.razor**, implement the `UpdateAsync` method within the `CustomAdaptor` class:
@@ -1858,17 +1858,17 @@ public async Task UpdateInventoryItemAsync(InventoryStock item)
**How Update Works:**
-- User selects a record and clicks "Edit" button in DataGrid
+- User selects a record and clicks "Edit" button in Blazor DataGrid
- Row enters edit mode allowing data modification
- User updates the inventory details and clicks "Update"
- `UpdateAsync` method is triggered with the modified item data
- `UpdateInventoryItemAsync` re-indexes the item in Elasticsearch using the same ItemId
- Index is refreshed to make updated data immediately searchable
-- Updated item reflects changes in DataGrid
+- Updated item reflects changes in Blazor DataGrid
**Delete**
-Record deletion allows inventory items to be removed directly from the DataGrid and Elasticsearch.
+Record deletion allows inventory items to be removed directly from the Blazor DataGrid and Elasticsearch.
In **Home.razor**, implement the `RemoveAsync` method within the `CustomAdaptor` class:
@@ -1904,13 +1904,13 @@ public async Task RemoveInventoryItemAsync(int? itemId)
**How Delete Works:**
-- User selects one or more records and clicks "Delete" button in DataGrid
+- User selects one or more records and clicks "Delete" button in Blazor DataGrid
- Confirmation prompt appears to verify deletion
- User confirms the deletion action
- `RemoveAsync` method is triggered with the selected item's ItemId
- `RemoveInventoryItemAsync` deletes the document from Elasticsearch using the ItemId
- Index is refreshed to reflect the deletion immediately
-- Deleted item is removed from DataGrid
+- Deleted item is removed from Blazor DataGrid
**Batch Update**
@@ -1954,16 +1954,16 @@ public class CustomAdaptor : DataAdaptor
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `InventoryRepository.UpdateInventoryItemAsync()` with `IndexAsync` (re-index with same ID).
- Each newly added record is saved using `InventoryRepository.AddInventoryItemAsync()` with ID generation.
- Each deleted record is removed using `InventoryRepository.RemoveInventoryItemAsync()` with `DeleteAsync`.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with efficient Elasticsearch synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1987,6 +1987,6 @@ This guide demonstrates how to:
6. Implement aggregations for calculated values such as sum, average, count, min, max, and cardinality. [🔗](#step-9-implement-aggregations-feature)
7. Handle batch operations and bulk updates for efficient data synchronization. [🔗](#step-10-perform-crud-operations)
-The application now provides a complete solution for managing inventory stock with a modern, user-friendly interface integrated with Elasticsearch. The CustomAdaptor pattern provides a clean separation between the DataGrid UI and the Elasticsearch data layer, making the application maintainable and scalable.
+The application now provides a complete solution for managing inventory stock with a modern, user-friendly interface integrated with Elasticsearch. The CustomAdaptor pattern provides a clean separation between the Blazor DataGrid UI and the Elasticsearch data layer, making the application maintainable and scalable.
---
\ No newline at end of file
diff --git a/blazor/datagrid/connecting-to-backends/signalr.md b/blazor/datagrid/connecting-to-backends/signalr.md
index f32d23c980..d328027af4 100644
--- a/blazor/datagrid/connecting-to-backends/signalr.md
+++ b/blazor/datagrid/connecting-to-backends/signalr.md
@@ -34,8 +34,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net9.0 or later | Runtime and build tools |
| Microsoft.AspNetCore.SignalR.Client | 9.0.0 or later | SignalR client library for Blazor |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid component |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid component |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid |
## Setting Up SignalR with Real-Time Data
@@ -247,7 +247,7 @@ public class StockDataService
**Explanation:**
- `InitializeStocks()`: Populates the in-memory collection with diversified stock data from multiple sectors.
-- `GetAllStocks()`: Returns all stocks sorted by symbol for consistent ordering in the DataGrid.
+- `GetAllStocks()`: Returns all stocks sorted by symbol for consistent ordering in the Blazor DataGrid.
- `UpdateStockPrices()`: Simulates real-time market changes with random price fluctuations between -2% and +2%.
The data service is now ready to provide real-time stock data.
@@ -456,7 +456,7 @@ builder.Services.AddSyncfusionBlazor();
// StockDataService: Manages in-memory stock data (Singleton for shared state)
builder.Services.AddSingleton();
-// StockAdaptor: Custom adaptor for DataGrid operations (Scoped per request)
+// StockAdaptor: Custom adaptor for Blazor DataGrid operations (Scoped per request)
builder.Services.AddScoped();
// Add SignalR for real-time communication
@@ -508,7 +508,7 @@ Service registration is now complete.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -534,11 +534,11 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
-The `Home.razor` component displays the stock market data in a DataGrid and establishes a SignalR connection for real-time updates.
+The `Home.razor` component displays the stock market data in a Blazor DataGrid and establishes a SignalR connection for real-time updates.
**Instructions:**
@@ -583,13 +583,13 @@ The `Home.razor` component displays the stock market data in a DataGrid and esta
- **`@implements IAsyncDisposable`**: Implements the async disposal pattern to clean up resources.
- **`HubConnection`**: Manages the SignalR connection to the server.
- **Connection Status Indicator**: Displays the current connection state (Connected, Connecting, Disconnected).
-- **DataGrid Integration**: Uses the `StockAdaptor` to retrieve and display data.
-- **Real-Time Updates**: Receives "ReceiveStockUpdate" messages from the server and refreshes the grid.
+- **Blazor DataGrid Integration**: Uses the `StockAdaptor` to retrieve and display data.
+- **Real-Time Updates**: Receives "ReceiveStockUpdate" messages from the server and refreshes the Blazor Grid.
- **Automatic Reconnection**: Implements exponential back off retry logic for network resilience.
### Step 3: Create the CustomAdaptor for SignalR
-The CustomAdaptor bridges the DataGrid with SignalR by implementing the DataAdaptor interface. It handles data retrieval, searching, filtering, and sorting operations required by the DataGrid.
+The CustomAdaptor bridges the Blazor DataGrid with SignalR by implementing the DataAdaptor interface. It handles data retrieval, searching, filtering, and sorting operations required by the Blazor Grid.
**Instructions:**
@@ -605,7 +605,7 @@ using Syncfusion.Blazor.Data;
namespace Grid_SignalR.Services;
///
-/// Custom adaptor for DataGrid that handles data operations for real-time stock data.
+/// Custom adaptor for Blazor DataGrid that handles data operations for real-time stock data.
/// Implements reading, searching, filtering, and sorting operations.
///
public class StockAdaptor : DataAdaptor
@@ -618,7 +618,7 @@ public class StockAdaptor : DataAdaptor
}
///
- /// Handles data retrieval and processing for the DataGrid.
+ /// Handles data retrieval and processing for the Blazor DataGrid.
/// This method applies search, filter, sort, and paging operations.
///
/// Contains information about requested operations (search, filter, sort, page).
@@ -673,14 +673,14 @@ public class StockAdaptor : DataAdaptor
```
**Explanation:**
-- **ReadAsync**: Core method called by the DataGrid to retrieve and process data.
+- **ReadAsync**: Core method called by the Blazor DataGrid to retrieve and process data.
- **Data Operations**: Uses `DataOperations` static methods to apply transformations:
- `PerformSearching`: Filters data based on search keywords across all searchable columns.
- `PerformFiltering`: Applies column-based filter conditions.
- `PerformSorting`: Sorts data by specified columns and directions.
- `PerformSkip/Take`: Handles pagination by skipping and taking records.
-The adaptor is now ready to provide data operations for the DataGrid.
+The adaptor is now ready to provide data operations for the Blazor DataGrid.
### Step 4: Establish SignalR Connection
@@ -781,9 +781,9 @@ code {
**Explanation:**
- **`hubConnection.On>()`**: Registers a handler for a specific message type from the server.
- **`"ReceiveStockUpdate"`**: The server sends this message periodically (every 1 second from `StockUpdateBackgroundService`) to broadcast updated stock data to all connected clients.
- - When received, `RefreshGrid()` is called to update the DataGrid with the latest prices.
+ - When received, `RefreshGrid()` is called to update the Blazor DataGrid with the latest prices.
- **`"InitializeStocks"`**: The server sends this message when a client first connects (from `OnConnectedAsync()` in `StockHub`) and when a client subscribes (from `SubscribeToStocks()` in `StockHub`).
- - When received, the DataGrid is initialized with the current stock data.
+ - When received, the Blazor DataGrid is initialized with the current stock data.
**Why two handlers?**
- `InitializeStocks`: Used for initial data load and manual refresh operations.
@@ -793,9 +793,9 @@ code {
```
Timeline:
t=0ms: Client connects → Server calls OnConnectedAsync() → Sends "InitializeStocks" message
-t=10ms: Client receives "InitializeStocks" → Calls RefreshGrid() → Grid displays initial data
+t=10ms: Client receives "InitializeStocks" → Calls RefreshGrid() → Blazor Grid displays initial data
t=1000ms: Background service updates prices → Sends "ReceiveStockUpdate" to all clients
-t=1005ms: Client receives "ReceiveStockUpdate" → Calls RefreshGrid() → Grid displays updated prices
+t=1005ms: Client receives "ReceiveStockUpdate" → Calls RefreshGrid() → Blazor Grid displays updated prices
t=2000ms: Background service updates prices again → Sends "ReceiveStockUpdate" to all clients
... (repeats every second)
```
@@ -961,7 +961,7 @@ Here's the complete lifecycle of SignalR communication from component initializa
├─────────────────────────────────────────────────────────────────────┤
│ - Client receives InitializeStocks message │
│ - Handler calls RefreshGrid() │
-│ - Grid displays initial stock data │
+│ - Blazor Grid displays initial stock data │
└─────────────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────────────┐
@@ -971,7 +971,7 @@ Here's the complete lifecycle of SignalR communication from component initializa
│ - Service sends ReceiveStockUpdate to "StockTraders" group │
│ - All connected clients receive ReceiveStockUpdate message │
│ - Each client's handler calls RefreshGrid() │
-│ - Grid refreshes with latest prices │
+│ - Blazor Grid refreshes with latest prices │
│ - Visual indicators (green/red) show price changes │
└─────────────────────────────────────────────────────────────────────┘
↓
@@ -1093,7 +1093,7 @@ Styling is now applied for enhanced visual feedback.
├─────────────────────────────────────────────────────────────┤
│ 1. Receives "ReceiveStockUpdate" message │
│ 2. Calls RefreshGrid() │
-│ 3. Grid refreshes via StockAdaptor.ReadAsync() │
+│ 3. Blazor Grid refreshes via StockAdaptor.ReadAsync() │
│ 4. New data displayed with updated prices │
└─────────────────────────────────────────────────────────────┘
```
@@ -1104,7 +1104,7 @@ Styling is now applied for enhanced visual feedback.
1. Background service updates stock prices every 1 second
2. Calls `hubContext.Clients.Group("StockTraders").SendAsync("ReceiveStockUpdate", stocks)`
3. All connected clients receive the update message
-4. DataGrid automatically refreshes with new data
+4. Blazor DataGrid automatically refreshes with new data
**Client-to-Server (Subscription):**
1. Client establishes connection: `await hubConnection.StartAsync()`
@@ -1304,8 +1304,8 @@ This strategy prevents overwhelming the server during network issues.
}
///
- /// Refreshes the DataGrid by calling its Refresh method.
- /// This forces the DataGrid to re-fetch data and re-render.
+ /// Refreshes the Blazor DataGrid by calling its Refresh method.
+ /// This forces the Blazor DataGrid to re-fetch data and re-render.
///
private async Task RefreshGrid()
{
@@ -1361,7 +1361,7 @@ info: Grid_SignalR.Services.StockUpdateBackgroundService[0]
1. Open a web browser.
2. Navigate to `https://localhost:7018` (or the port shown in the terminal).
3. The application will show:
- - A DataGrid with stock data
+ - A Blazor DataGrid with stock data
- Prices updating every second in real-time
---
@@ -1393,7 +1393,7 @@ This guide demonstrates how to:
2. Implement a data service to manage in-memory stock data. [🔗](#step-3-create-the-data-service)
3. Build a SignalR Hub for server-client communication. [🔗](#step-4-create-the-signalr-hub)
4. Create a background service for continuous updates. [🔗](#step-5-create-the-background-service)
-5. Develop a CustomAdaptor for DataGrid operations. [🔗](#step-3-create-the-customadaptor-for-signalr)
+5. Develop a CustomAdaptor for Blazor DataGrid operations. [🔗](#step-3-create-the-customadaptor-for-signalr)
6. Register services in the application configuration. [🔗](#step-6-register-services-in-programcs)
7. Build a Blazor component with real-time data binding. [🔗](#step-2-create-the-blazor-component-with-signalr-integration)
8. Implement bidirectional SignalR communication. [🔗](#how-signalr-real-time-updates-work)
diff --git a/blazor/datagrid/connecting-to-database/firebase-firestore.md b/blazor/datagrid/connecting-to-database/firebase-firestore.md
index 0ad46644f1..866e1227b0 100644
--- a/blazor/datagrid/connecting-to-database/firebase-firestore.md
+++ b/blazor/datagrid/connecting-to-database/firebase-firestore.md
@@ -38,8 +38,8 @@ Ensure the following software, accounts, and packages are in place before procee
| Firebase Account | Active account | Cloud project hosting and Firestore database |
| Google Cloud Project | Active project | Required for Firebase services and API credentials |
| Google.Cloud.Firestore | 3.7.0 or later | Official .NET client library for Firestore |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
## Setting Up the Firebase Firestore Environment
@@ -152,7 +152,7 @@ Required APIs are now enabled for the application.
Before installing the necessary NuGet packages, a new Blazor Web Application must be created using the default template.
This template automatically generates essential starter files—such as **Program.cs, appsettings.json, the wwwroot folder, and the Components folder**.
-For this guide, a Blazor application named **Grid_Firebase_Firestore** has been created. Once the project is set up, the next step involves installing the required NuGet packages. NuGet packages are software libraries that add functionality to the Blazor application. These packages enable Firebase Firestore integration and DataGrid components.
+For this guide, a Blazor application named **Grid_Firebase_Firestore** has been created. Once the project is set up, the next step involves installing the required NuGet packages. NuGet packages are software libraries that add functionality to the Blazor application. These packages enable Firebase Firestore integration and Blazor DataGrid components.
**Method 1: Using Package Manager Console**
@@ -709,7 +709,7 @@ Update the `Components/Pages/Home.razor` file to include bulk import functionali
if (success)
{
ImportCompleted = true;
- // Refresh the grid
+ // Refresh the Blazor Grid
if (_grid != null)
{
await _grid.Refresh();
@@ -888,7 +888,7 @@ The service registration has been completed successfully in `Program.cs`.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -916,7 +916,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
> For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-> Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+> Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
---
@@ -927,7 +927,7 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Replace the entire file content with the following code to create a DataGrid with bulk import functionality:
+2. Replace the entire file content with the following code to create a Blazor DataGrid with bulk import functionality:
```cshtml
@page "/"
@@ -938,7 +938,7 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
Library Management
-
+
@@ -965,13 +965,13 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for real-time updates
- **`@inject FirebaseService`**: Injects the FirebaseService to access database methods
-- **``**: The DataGrid component that displays books in rows and columns
+- **``**: The Blazor DataGrid component that displays books in rows and columns
- **``**: Defines individual columns with field mappings, types, and formatting
- **`AllowPaging`, `AllowSorting`, `AllowFiltering`, `AllowGrouping`**: Enable grid features
- **``**: Configures add, edit, and delete operations
- **`Toolbar`**: Provides buttons for CRUD and search operations
-The Home component has been successfully updated with the DataGrid and CustomAdaptor.
+The Home component has been successfully updated with the Blazor DataGrid and CustomAdaptor.
---
@@ -979,7 +979,7 @@ The Home component has been successfully updated with the DataGrid and CustomAda
The Blazor DataGrid can bind data from a **Firebase Firestore** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to `CustomAdaptor` for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -992,8 +992,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
public static FirebaseService? _firebaseService { get; set; }
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -1099,7 +1099,7 @@ The toolbar provides buttons for adding, editing, deleting records, and searchin
Toolbar="@ToolbarItems">
-
+
```
@@ -1154,7 +1154,7 @@ dotnet run
2. Navigate to `https://localhost:5001` (or the port shown in the terminal).
3. The library management application is now running and ready to use.
-
+
---
@@ -1174,7 +1174,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -1256,7 +1256,7 @@ public async Task> GetBooksAsync()
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -1281,7 +1281,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
@@ -1337,10 +1337,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -1364,7 +1364,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
@@ -1427,7 +1427,7 @@ public class CustomAdaptor : DataAdaptor
- Select filtering criteria (equals, contains, greater than, less than, etc.).
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -1453,7 +1453,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1521,7 +1521,7 @@ public class CustomAdaptor : DataAdaptor
- Click on the column header to sort in ascending order.
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -1546,7 +1546,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
@@ -1633,9 +1633,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD Operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **FirebaseService.cs** to execute Firestore commands.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **FirebaseService.cs** to execute Firestore commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1664,7 +1664,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new books to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the Firebase Firestore database.
+Record insertion allows new books to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the Firebase Firestore database.
In **Home.razor**, implement the `InsertAsync` method to handle record insertion within the `CustomAdaptor` class:
@@ -1757,13 +1757,13 @@ private async Task GenerateBookIdAsync()
3. A unique BookId is auto-generated if not provided.
4. The LastUpdated is set to the current UTC time.
5. `SetAsync()` adds the document to the Firestore collection.
-6. The DataGrid automatically refreshes to display the new record.
+6. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new book is persisted to the database and reflected in the grid.
+Now the new book is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows book details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **Firebase Firestore** database while ensuring data integrity is preserved.
+Record modification allows book details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **Firebase Firestore** database while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method to handle record updates within the `CustomAdaptor` class:
@@ -1826,13 +1826,13 @@ public async Task UpdateBookAsync(string bookId, Book book)
4. The document ID is used to identify the book in Firestore.
5. `SetAsync()` with `MergeAll` option updates only the specified fields.
6. The method returns true if the document was modified successfully.
-7. The DataGrid refreshes to display the updated record.
+7. The Blazor DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows books to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **Firestore DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows books to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **Firestore DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1882,15 +1882,15 @@ public async Task DeleteBookAsync(string? bookId)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `FirebaseService.DeleteBookAsync()` method is called.
5. The document ID is used to identify the book in Firestore.
6. `DeleteAsync()` removes the document from the Firestore collection.
7. The method returns true if the document was deleted successfully.
-8. The DataGrid refreshes to remove the deleted record from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now books are removed from the database and the grid UI reflects the changes immediately.
+Now books are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch Update**
@@ -1938,17 +1938,17 @@ public class CustomAdaptor : DataAdaptor
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `FirebaseService.UpdateBookAsync()`.
- Each newly added record is saved using `FirebaseService.InsertBookAsync()`.
- Each deleted record is removed using `FirebaseService.DeleteBookAsync()`.
- All service operations persist changes to the Firebase Firestore database.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with atomic database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1995,7 +1995,7 @@ Here is the complete and final `Home.razor` component with all features integrat
-
+
@@ -2342,7 +2342,7 @@ Here is the complete and final `Home.razor` component with all features integrat
if (success)
{
ImportCompleted = true;
- // Refresh the grid
+ // Refresh the Blazor Grid
if (_grid != null)
{
await _grid.Refresh();
diff --git a/blazor/datagrid/connecting-to-database/firebase-realtime.md b/blazor/datagrid/connecting-to-database/firebase-realtime.md
index a3b2b1ed0e..f69a9edc0f 100644
--- a/blazor/datagrid/connecting-to-database/firebase-realtime.md
+++ b/blazor/datagrid/connecting-to-database/firebase-realtime.md
@@ -675,7 +675,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
---
@@ -686,7 +686,7 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Replace the entire file content with the following code to create a DataGrid with bulk import functionality:
+2. Replace the entire file content with the following code to create a Blazor DataGrid with bulk import functionality:
```cshtml
@page "/"
@@ -697,7 +697,7 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
Library Management
-
+
@@ -725,10 +725,10 @@ The `Home.razor` component displays the book data in a Blazor DataGrid with sear
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for real-time updates
- **`@inject FirebaseService`**: Injects the FirebaseService to access database methods
-- **``**: The DataGrid component that displays books in rows and columns
+- **``**: The Blazor DataGrid component that displays books in rows and columns
- **``**: Defines individual columns with field mappings, types, and formatting
-The Home component has been successfully updated with the DataGrid and CustomAdaptor.
+The Home component has been successfully updated with the Blazor DataGrid and CustomAdaptor.
---
@@ -736,7 +736,7 @@ The Home component has been successfully updated with the DataGrid and CustomAda
The Blazor DataGrid can bind data from a **Firebase Realtime** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to `CustomAdaptor` for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -749,8 +749,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
public static FirebaseService? _firebaseService { get; set; }
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -856,7 +856,7 @@ The toolbar provides buttons for adding, editing, deleting records, and searchin
Toolbar="@ToolbarItems">
-
+
```
@@ -931,7 +931,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -1046,7 +1046,7 @@ public async Task> GetBooksAsync()
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -1071,7 +1071,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
@@ -1127,10 +1127,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -1154,7 +1154,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
@@ -1217,7 +1217,7 @@ public class CustomAdaptor : DataAdaptor
- Select filtering criteria (equals, contains, greater than, less than, etc.).
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -1243,7 +1243,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1311,7 +1311,7 @@ public class CustomAdaptor : DataAdaptor
- Click on the column header to sort in ascending order.
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -1336,7 +1336,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
@@ -1423,9 +1423,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD Operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **FirebaseService.cs** to execute commands.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **FirebaseService.cs** to execute commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1454,7 +1454,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new books to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the Firebase Realtime database.
+Record insertion allows new books to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the Firebase Realtime database.
In **Home.razor**, implement the `InsertAsync` method to handle record insertion within the `CustomAdaptor` class:
@@ -1557,13 +1557,13 @@ private async Task GenerateBookIdAsync()
3. A unique BookId is auto-generated if not provided.
4. The LastUpdated is set to the current UTC time.
5. `PutAsync()` adds the document to the Realtime collection.
-6. The DataGrid automatically refreshes to display the new record.
+6. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new book is persisted to the database and reflected in the grid.
+Now the new book is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows book details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **Firebase Realtime** database while ensuring data integrity is preserved.
+Record modification allows book details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **Firebase Realtime** database while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method to handle record updates within the `CustomAdaptor` class:
@@ -1629,13 +1629,13 @@ public async Task UpdateBookAsync(string bookId, Book book)
3. The `FirebaseService.UpdateBookAsync()` method is called.
4. `PutAsync()` updates only the specified fields.
5. The method returns true if the document was modified successfully.
-6. The DataGrid refreshes to display the updated record.
+6. The Blazor DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows books to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows books to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1691,14 +1691,14 @@ public async Task DeleteBookAsync(string? bookId)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `FirebaseService.DeleteBookAsync()` method is called.
5. `DeleteAsync()` removes the document from the Realtime collection.
6. The method returns true if the document was deleted successfully.
-7. The DataGrid refreshes to remove the deleted record from the UI.
+7. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now books are removed from the database and the grid UI reflects the changes immediately.
+Now books are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch Update**
@@ -1746,17 +1746,17 @@ public class CustomAdaptor : DataAdaptor
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `FirebaseService.UpdateBookAsync()`.
- Each newly added record is saved using `FirebaseService.InsertBookAsync()`.
- Each deleted record is removed using `FirebaseService.DeleteBookAsync()`.
- All service operations persist changes to the Firebase Realtime database.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with atomic database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -2018,7 +2018,7 @@ Here is the complete and final `Home.razor` component with all features integrat
}
///
- /// Provides a list of category options used as a data source for the Category dropdown editor in the grid.
+ /// Provides a list of category options used as a data source for the Category dropdown editor in the Blazor Grid.
///
private static List CustomCategories = new List {
new Book() { Category = "Fiction" },
@@ -2033,7 +2033,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of status options used as a data source for the Status dropdown editor in the grid.
+ /// Provides a list of status options used as a data source for the Status dropdown editor in the Blazor Grid.
///
private static List CustomStatus = new List {
new Book() { Status = "Available" },
@@ -2120,7 +2120,7 @@ This guide demonstrates how to:
6. Configure connection strings. [🔗](#step-7-configure-the-firebase-connection-string)
7. Implement Firebase Service Class for data access. [🔗](#step-8-create-the-firebase-service-class)
8. Register Services in Program.cs [🔗](#step-9-register-services-in-programcs)
-9. Create a Blazor component with a DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-configure-blazor-datagrid-components)
+9. Create a Blazor component with a Blazor DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-configure-blazor-datagrid-components)
10. Handle bulk operations and batch updates. [🔗](#step-11-perform-crud-operations)
diff --git a/blazor/datagrid/connecting-to-database/microsoft-sql-server.md b/blazor/datagrid/connecting-to-database/microsoft-sql-server.md
index 41000a5214..02a3f78dfe 100644
--- a/blazor/datagrid/connecting-to-database/microsoft-sql-server.md
+++ b/blazor/datagrid/connecting-to-database/microsoft-sql-server.md
@@ -36,8 +36,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net8.0 or compatible | Runtime and build tools |
| SQL Server | 2019 or later | Database server |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Microsoft.EntityFrameworkCore | 9.0.0 or later | Core framework for database operations |
| Microsoft.EntityFrameworkCore.Tools | 9.0.0 or later | Tools for managing database migrations |
| Microsoft.EntityFrameworkCore.SqlServer | 9.0.0 or later | SQL Server provider for Entity Framework Core |
@@ -577,7 +577,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -603,7 +603,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
```
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -612,7 +612,7 @@ The `Home.razor` component will display the ticket data in a Blazor DataGrid wit
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Add the following code to create a basic DataGrid:
+2. Add the following code to create a basic Blazor DataGrid:
```cshtml
@page "/"
@@ -648,11 +648,11 @@ The `Home.razor` component will display the ticket data in a Blazor DataGrid wit
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
- **`@inject TicketRepository`**: Injects the repository to access database methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
-The Home component has been updated successfully with DataGrid.
+The Home component has been updated successfully with Blazor DataGrid.
---
@@ -660,7 +660,7 @@ The Home component has been updated successfully with DataGrid.
The Blazor DataGrid can bind data from a **SQL Server** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/connecting-to-adaptors/custom-adaptor) for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -679,8 +679,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
}
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -694,7 +694,7 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
///
/// ReadAsync retrieves records from the database and applies data operations.
- /// This method executes when the grid initializes and when filtering, searching, sorting, or paging occurs.
+ /// This method executes when the Blazor Grid initializes and when filtering, searching, sorting, or paging occurs.
///
public override async Task
```
@@ -847,7 +847,7 @@ dotnet run
2. Navigate to `https://localhost:5001` (or the port shown in the terminal).
3. The Network Support Ticket System is now running and ready to use.
-
+
### Step 6: Implement Paging Feature
@@ -865,7 +865,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -935,7 +935,7 @@ public async Task> GetTicketsDataAsync()
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -959,7 +959,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
@@ -1009,10 +1009,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term across all columns.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -1036,7 +1036,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
@@ -1097,7 +1097,7 @@ Filtering allows the user to restrict data based on column values using a menu i
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
- The `DataOperations.PerformFiltering()` method applies the filter conditions to the data.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor Data Table.
Filtering feature is now active.
@@ -1123,7 +1123,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1184,7 +1184,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
- The `DataOperations.PerformSorting()` method sorts the data based on the specified column and direction.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor Data Table.
Sorting feature is now active.
@@ -1209,7 +1209,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
@@ -1288,9 +1288,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **TicketRepository.cs** to execute SQL Server commands.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **TicketRepository.cs** to execute SQL Server commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1319,7 +1319,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new tickets to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the SQL Server database.
+Record insertion allows new tickets to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the SQL Server database.
In **Home.razor**, implement the `InsertAsync` method within the `CustomAdaptor` class:
@@ -1411,13 +1411,13 @@ private async Task GeneratePublicTicketIdAsync()
2. The `TicketRepository.AddTicketAsync()` method is called.
3. The new record is added to the `_context.Tickets` collection.
4. `SaveChangesAsync()` persists the record to the SQL Server database.
-5. The DataGrid automatically refreshes to display the new record.
+5. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new ticket is persisted to the database and reflected in the grid.
+Now the new ticket is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows ticket details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **SQL Server database** while ensuring data integrity is preserved.
+Record modification allows ticket details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **SQL Server database** while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method within the `CustomAdaptor` class:
@@ -1494,13 +1494,13 @@ public async Task UpdateTicketAsync(Tickets? value)
4. The existing record is retrieved from the database by ID.
5. All properties are updated with the new values.
6. `SaveChangesAsync()` persists the changes to the SQL Server database.
-7. The DataGrid refreshes to display the updated record.
+7. The Blazor DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows tickets to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **SQL Server DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows tickets to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **SQL Server DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method within the `CustomAdaptor` class:
@@ -1566,15 +1566,15 @@ public async Task RemoveTicketAsync(int? key)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `TicketRepository.RemoveTicketAsync()` method is called.
5. The record is located in the database by its ID.
6. The record is removed from the `_context.Tickets` collection.
7. `SaveChangesAsync()` executes the DELETE statement in SQL Server.
-8. The DataGrid refreshes to remove the deleted record from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now tickets are removed from the database and the grid UI reflects the changes immediately.
+Now tickets are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch update**
@@ -1618,17 +1618,17 @@ public class CustomAdaptor : DataAdaptor
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `TicketRepository.UpdateTicketAsync()`.
- Each newly added record is saved using `TicketRepository.AddTicketAsync()`.
- Each deleted record is removed using `TicketRepository.RemoveTicketAsync()`.
- All repository operations persist changes to the SQL Server database.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with atomic database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1854,7 +1854,7 @@ Here is the complete and final `Home.razor` component with all features integrat
/// Removes a data item from the data collection.
///
/// The DataManager is a data management component used for performing data operations in application.
- /// The Value specifies the primary column value which is needs to be removed from the grid record.
+ /// The Value specifies the primary column value which is needs to be removed from the Blazor Grid record.
/// The KeyField specifies the field name of the primary column.
/// An optional parameter that can be used to perform additional data operations.
/// Returns the removed data item.
@@ -1869,9 +1869,9 @@ Here is the complete and final `Home.razor` component with all features integrat
/// Batchupdate (Insert, Update, Delete) a collection of data items from the data collection.
///
/// The DataManager is a data management component used for performing data operations in application.
- /// The Changed specifies the collection of record updated in batch mode which needs to be updated from the grid record.
- /// The Added specifies the collection of record inserted in batch mode which needs to be inserted from the grid record.
- /// The Deleted specifies the collection of record deleted in batch mode which needs to be removed from the grid record.
+ /// The Changed specifies the collection of record updated in batch mode which needs to be updated from the Blazor Grid record.
+ /// The Added specifies the collection of record inserted in batch mode which needs to be inserted from the Blazor Grid record.
+ /// The Deleted specifies the collection of record deleted in batch mode which needs to be removed from the Blazor Grid record.
/// The KeyField specifies the field name of the primary column.
/// An optional parameter that can be used to perform additional data operations.
/// An optional parameter that can be used to perform row drag and drop operation.
@@ -1904,7 +1904,7 @@ Here is the complete and final `Home.razor` component with all features integrat
}
///
- /// Provides a list of status options used as the data source for the Status dropdown editor in the grid.
+ /// Provides a list of status options used as the data source for the Status dropdown editor in the Blazor Grid.
///
private static List StatusCustomData = new List {
new Tickets() { Status= "Open" },
@@ -1924,7 +1924,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of priority options used as the data source for the Priority dropdown editor in the grid.
+ /// Provides a list of priority options used as the data source for the Priority dropdown editor in the Blazor Grid.
///
private static List PriorityCustomData = new List {
new Tickets() { Priority= "Critical" },
@@ -1942,7 +1942,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of category options used as the data source for the Category dropdown editor in the grid.
+ /// Provides a list of category options used as the data source for the Category dropdown editor in the Blazor Grid.
///
private static List CategoryCustomData = new List {
new Tickets() { Category= "Network Issue" },
@@ -1970,7 +1970,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of department options used as the data source for the Department dropdown editor in the grid.
+ /// Provides a list of department options used as the data source for the Department dropdown editor in the Blazor Grid.
///
private static List DepartmentCustomData = new List {
new Tickets() { Department= "IT Support" },
@@ -1992,7 +1992,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of requester names used as the data source for the Requested By dropdown editor in the grid.
+ /// Provides a list of requester names used as the data source for the Requested By dropdown editor in the Blazor Grid.
///
private static List CreatedByCustomData = new List {
new Tickets() { CreatedBy= "Alice Smith" },
@@ -2020,7 +2020,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of agent names used as the data source for the Agent dropdown editor in the grid.
+ /// Provides a list of agent names used as the data source for the Agent dropdown editor in the Blazor Grid.
///
private static List AssigneeCustomData = new List {
new Tickets() { Assignee= "John Doe" },
@@ -2164,7 +2164,7 @@ This guide demonstrates how to:
3. Create data models and DbContext for database communication. [🔗](#step-3-create-the-data-model)
4. Configure connection strings and register services. [🔗](#step-5-configure-the-connection-string)
5. Implement the repository pattern for data access. [🔗](#step-6-create-the-repository-class)
-6. Create a Blazor component with a DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
+6. Create a Blazor component with a Blazor DataGrid that supports searching, filtering, sorting, paging, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
7. Handle bulk operations and batch updates. [🔗](#step-10-perform-crud-operations)
The application now provides a complete solution for managing network support tickets with a modern, user-friendly interface integrated with SQL Server.
diff --git a/blazor/datagrid/connecting-to-database/mongodb-server.md b/blazor/datagrid/connecting-to-database/mongodb-server.md
index 2a9bc35747..a4c22e5188 100644
--- a/blazor/datagrid/connecting-to-database/mongodb-server.md
+++ b/blazor/datagrid/connecting-to-database/mongodb-server.md
@@ -37,8 +37,8 @@ Ensure the following software and packages are installed before proceeding:
| .NET SDK | net9.0 or compatible | Runtime and build tools |
| MongoDB Server | 6.0 or later | NoSQL database server |
| MongoDB Compass | Latest | GUI for MongoDB database management |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| MongoDB.Driver | 2.23.0 or later | Official .NET driver for MongoDB |
## Setting Up the MongoDB Environment
@@ -108,7 +108,7 @@ After inserting these documents, the project records are stored in the `Projects
Before installing the necessary NuGet packages, a new Blazor Web Application must be created using the default template.
This template automatically generates essential starter files—such as **Program.cs, appsettings.json, the wwwroot folder, and the Components folder**.
-For this guide, a Blazor application named **Grid_MongoDB** has been created. Once the project is set up, the next step involves installing the required NuGet packages. NuGet packages are software libraries that add functionality to the application. These packages enable MongoDB integration and DataGrid components.
+For this guide, a Blazor application named **Grid_MongoDB** has been created. Once the project is set up, the next step involves installing the required NuGet packages. NuGet packages are software libraries that add functionality to the application. These packages enable MongoDB integration and Blazor DataGrid components.
**Method 1: Using Package Manager Console**
@@ -460,7 +460,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -488,7 +488,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
---
@@ -499,7 +499,7 @@ The `Home.razor` component will display the project data in a Blazor DataGrid wi
**Instructions:**
* Open the file named `Home.razor` in the `Components/Pages` folder.
-* Add the following code to create a basic DataGrid:
+* Add the following code to create a basic Blazor DataGrid:
```cshtml
@page "/"
@@ -547,11 +547,11 @@ The `Home.razor` component will display the project data in a Blazor DataGrid wi
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
- **`@inject MongoDbService`**: Injects the MongoDB service to access database methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
-The Home component has been updated successfully with DataGrid.
+The Home component has been updated successfully with Blazor DataGrid.
---
@@ -559,7 +559,7 @@ The Home component has been updated successfully with DataGrid.
The Blazor DataGrid can bind data from a **MongoDB** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to `CustomAdaptor` for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -572,8 +572,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
private static MongoDbService? _mongoDbService;
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -585,7 +585,7 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
///
/// ReadAsync retrieves records from the database and applies data operations.
- /// This method executes when the grid initializes and when filtering, searching, sorting, or paging occurs.
+ /// This method executes when the Blazor Grid initializes and when filtering, searching, sorting, or paging occurs.
///
public override async Task
```
@@ -738,7 +738,7 @@ dotnet run
2. Navigate to `https://localhost:5001` (or the port shown in the terminal).
3. The project management application is now running and ready to use.
-
+
---
@@ -758,7 +758,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -826,7 +826,7 @@ public async Task> GetProjectsAsync()
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -851,7 +851,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
@@ -907,10 +907,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -934,7 +934,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
@@ -997,7 +997,7 @@ public class CustomAdaptor : DataAdaptor
- Select filtering criteria (equals, contains, greater than, less than, etc.).
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -1023,7 +1023,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1091,7 +1091,7 @@ public class CustomAdaptor : DataAdaptor
- Click on the column header to sort in ascending order.
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -1116,7 +1116,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
@@ -1203,9 +1203,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD Operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **MongoDbService.cs** to execute MongoDB commands.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **MongoDbService.cs** to execute MongoDB commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1234,7 +1234,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new projects to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the MongoDB database.
+Record insertion allows new projects to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the MongoDB database.
In **Home.razor**, implement the `InsertAsync` method to handle record insertion within the `CustomAdaptor` class:
@@ -1311,13 +1311,13 @@ private async Task GenerateProjectIdAsync()
3. A unique ProjectId is auto-generated if not provided.
4. The StartDate is set to the current date if not provided.
5. `InsertOneAsync()` adds the document to the MongoDB collection.
-6. The DataGrid automatically refreshes to display the new record.
+6. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new project is persisted to the database and reflected in the grid.
+Now the new project is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows project details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **MongoDB** database while ensuring data integrity is preserved.
+Record modification allows project details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **MongoDB** database while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method to handle record updates within the `CustomAdaptor` class:
@@ -1365,11 +1365,11 @@ public async Task UpdateProjectAsync(string projectId, Project project)
6. The method returns true if the document was modified successfully.
7. The DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows projects to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **MongoDB DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows projects to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **MongoDB DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1406,15 +1406,15 @@ public async Task DeleteProjectAsync(string? projectId)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `MongoDbService.DeleteProjectAsync()` method is called.
5. A filter is created to find the document by ProjectId.
6. `DeleteOneAsync()` removes the document from the MongoDB collection.
7. The method returns true if the document was deleted successfully.
-8. The DataGrid refreshes to remove the deleted record from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now projects are removed from the database and the grid UI reflects the changes immediately.
+Now projects are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch Update**
@@ -1466,13 +1466,13 @@ public class CustomAdaptor : DataAdaptor
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor's `BatchUpdateAsync()` method.
- Each modified record is processed using `MongoDbService.UpdateProjectAsync()`.
- Each newly added record is saved using `MongoDbService.InsertProjectAsync()`.
- Each deleted record is removed using `MongoDbService.DeleteProjectAsync()`.
- All service operations persist changes to the MongoDB database.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with atomic database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1744,7 +1744,7 @@ Here is the complete and final `Home.razor` component with all features integrat
}
///
- /// Provides a list of status options used as a data source for the Status dropdown editor in the grid.
+ /// Provides a list of status options used as a data source for the Status dropdown editor in the Blazor Grid.
///
private static List CustomStatus = new List {
new Project() { Status = "Planning" },
@@ -1755,7 +1755,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of priority options used as a data source for the Priority dropdown editor in the grid.
+ /// Provides a list of priority options used as a data source for the Priority dropdown editor in the Blazor Grid.
///
private static List CustomPriority = new List {
new Project() { Priority = "Low" },
@@ -1797,7 +1797,7 @@ This guide demonstrates how to:
3. Create data models with MongoDB attributes for document mapping. [🔗](#step-3-create-the-data-model)
4. Implement the MongoDB service class for data access. [🔗](#step-4-create-the-mongodb-service-class)
5. Configure connection strings and register services. [🔗](#step-5-configure-the-connection-string)
-6. Create a Blazor component with a DataGrid that supports searching, filtering, sorting, paging, grouping, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
+6. Create a Blazor component with a Blazor DataGrid that supports searching, filtering, sorting, paging, grouping, and CRUD operations. [🔗](#step-1-install-and-configure-blazor-datagrid-components)
7. Handle bulk operations and batch updates. [🔗](#step-11-perform-crud-operations)
The application now provides a complete solution for managing project data with a modern, user-friendly interface powered by MongoDB's flexible document database.
\ No newline at end of file
diff --git a/blazor/datagrid/connecting-to-database/mysql-server.md b/blazor/datagrid/connecting-to-database/mysql-server.md
index 9144b98056..ed43ebd1ff 100644
--- a/blazor/datagrid/connecting-to-database/mysql-server.md
+++ b/blazor/datagrid/connecting-to-database/mysql-server.md
@@ -36,8 +36,8 @@ Ensure the following software and packages are installed before proceeding:
| Visual Studio 2026 | 18.0 or later | Development IDE with Blazor workload |
| .NET SDK | net8.0 or compatible | Runtime and build tools |
| MySQL Server | 8.0.41 or later | Database server |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Microsoft.EntityFrameworkCore | 9.0.0 or later | Core framework for database operations |
| Microsoft.EntityFrameworkCore.Tools | 9.0.0 or later | Tools for managing database migrations |
| Pomelo.EntityFrameworkCore.MySql | 9.0.0 or later | MySQL provider for Entity Framework Core |
@@ -502,7 +502,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -528,7 +528,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component’s [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component’s [getting‑started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -537,7 +537,7 @@ The `Home.razor` component will display the transaction data in a Blazor DataGri
**Instructions:**
* Open the file named `Home.razor` in the `Components/Pages` folder.
-* Add the following code to create a basic DataGrid:
+* Add the following code to create a basic Blazor DataGrid:
```cshtml
@page "/"
@@ -571,11 +571,11 @@ The `Home.razor` component will display the transaction data in a Blazor DataGri
- **`@rendermode InteractiveServer`**: Enables interactive server-side rendering for the component.
- **`@inject TransactionRepository`**: Injects the repository to access database methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
-The Home component has been updated successfully with DataGrid.
+The Home component has been updated successfully with Blazor DataGrid.
---
@@ -583,7 +583,7 @@ The Home component has been updated successfully with DataGrid.
The Blazor DataGrid can bind data from a **MySQL Server** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to `CustomAdaptor` for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -596,8 +596,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
private static TransactionRepository? _transactionService;
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -609,7 +609,7 @@ The `CustomAdaptor` is a bridge between the DataGrid and the database. It handle
///
/// ReadAsync retrieves records from the database and applies data operations.
- /// This method executes when the grid initializes and when filtering, searching, sorting, or paging occurs.
+ /// This method executes when the Blazor Grid initializes and when filtering, searching, sorting, or paging occurs.
///
public override async Task
```
@@ -762,7 +762,7 @@ dotnet run
2. Navigate to `https://localhost:5001` (or the port shown in the terminal).
3. The transaction management application is now running and ready to use.
-
+
### Step 6: Implement Paging Feature
@@ -780,7 +780,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
* Update the `ReadAsync` method in the `CustomAdaptor` class to handle paging:
@@ -851,7 +851,7 @@ public async Task> GetTransactionsAsync()
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -877,7 +877,7 @@ Searching allows the user to find records by entering keywords in the search box
Toolbar="@ToolbarItems">
-
+
```
* Update the `ReadAsync` method in the `CustomAdaptor` class to handle searching:
@@ -932,10 +932,10 @@ Searching allows the user to find records by entering keywords in the search box
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term.
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -959,7 +959,7 @@ Filtering allows the user to restrict data based on column values using a menu i
-
+
```
@@ -1022,7 +1022,7 @@ public class CustomAdaptor : DataAdaptor
- Select filtering criteria (equals, contains, greater than, less than, etc.).
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
Filtering feature is now active.
@@ -1048,7 +1048,7 @@ Sorting enables the user to arrange records in ascending or descending order bas
-
+
```
@@ -1116,7 +1116,7 @@ public class CustomAdaptor : DataAdaptor
- Click on the column header to sort in ascending order.
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
Sorting feature is now active.
@@ -1141,7 +1141,7 @@ Grouping organizes records into hierarchical groups based on column values.
-
+
```
* Update the `ReadAsync` method in the `CustomAdaptor` class to handle grouping:
@@ -1229,9 +1229,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD operations
-CustomAdaptor methods enable users to create, read, update, and delete records directly from the DataGrid. Each operation calls corresponding data layer methods in **TransactionRepository.cs** to execute MySQL commands.
+CustomAdaptor methods enable users to create, read, update, and delete records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **TransactionRepository.cs** to execute MySQL commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
Add the toolbar items list in the `@code` block:
@@ -1258,7 +1258,7 @@ Add the toolbar items list in the `@code` block:
```
**Insert**
-Record insertion allows new transactions to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the MySQL Server database.
+Record insertion allows new transactions to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the MySQL Server database.
In **Home.razor**, implement the `InsertAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1323,13 +1323,13 @@ private string GeneratePublicTransactionId(DateTime? CreatedOnDate, int primaryK
2. The `TransactionRepository.AddTransactionAsync()` method is called.
3. The new record is added to the `_context.Transactions` collection.
4. `SaveChangesAsync()` persists the record to the MySQL database.
-5. The DataGrid automatically refreshes to display the new record.
+5. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new transaction is persisted to the database and reflected in the grid.
+Now the new transaction is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows transaction details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **MySQL Server database** while ensuring data integrity is preserved.
+Record modification allows transaction details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **MySQL Server database** while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1382,13 +1382,13 @@ public async Task UpdateTransactionAsync(TransactionModel? transaction)
4. The existing record is retrieved from the database by ID.
5. All properties are updated with the new values (except ID and CreatedOn).
6. `SaveChangesAsync()` persists the changes to the MySQL database.
-7. The DataGrid refreshes to display the updated record.
+7. The Blazor DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows transactions to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **MySQL DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows transactions to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **MySQL DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method to handle record deletion within the `CustomAdaptor` class:
@@ -1440,9 +1440,9 @@ public async Task RemoveTransactionAsync(int? key)
5. The record is located in the database by its ID.
6. The record is removed from the `_context.Transactions` collection.
7. `SaveChangesAsync()` executes the DELETE statement in MySQL.
-8. The DataGrid refreshes to remove the deleted record from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now transactions are removed from the database and the grid UI reflects the changes immediately.
+Now transactions are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch update**
@@ -1485,17 +1485,17 @@ public class CustomAdaptor : DataAdaptor
}
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
**What happens behind the scenes:**
-- The DataGrid collects all added, edited, and deleted records in Batch Edit mode.
+- The Blazor DataGrid collects all added, edited, and deleted records in Batch Edit mode.
- The combined batch request is passed to the CustomAdaptor’s `BatchUpdateAsync()` method.
- Each modified record is processed using `TransactionRepository.UpdateTransactionAsync()`.
- Each newly added record is saved using `TransactionRepository.AddTransactionAsync()`.
- Each deleted record is removed using `TransactionRepository.RemoveTransactionAsync()`.
- All repository operations persist changes to the MySQL Server database.
-- The DataGrid refreshes to display the updated, added, and removed records in a single response.
+- The Blazor DataGrid refreshes to display the updated, added, and removed records in a single response.
Now the adaptor supports bulk modifications with atomic database synchronization. All CRUD operations are now fully implemented, enabling comprehensive data management capabilities within the Blazor DataGrid.
@@ -1710,7 +1710,7 @@ Here is the complete and final `Home.razor` component with all features integrat
}
///
- /// Provides a list of payment gateway options used as a data source for the Gateway dropdown editor in the grid.
+ /// Provides a list of payment gateway options used as a data source for the Gateway dropdown editor in the Blazor Grid.
///
private static List CustomGateway = new List {
new TransactionModel() { PaymentGateway = "Razorpay" },
@@ -1721,7 +1721,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of transaction types used as a data source for the Type dropdown editor in the grid.
+ /// Provides a list of transaction types used as a data source for the Type dropdown editor in the Blazor Grid.
///
private static List CustomType = new List {
new TransactionModel() { TransactionType = "SALE" },
@@ -1730,7 +1730,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Provides a list of transaction statuses used as a data source for the Status dropdown editor in the grid.
+ /// Provides a list of transaction statuses used as a data source for the Status dropdown editor in the Blazor Grid.
///
private static List CustomStatus = new List {
new TransactionModel() { Status = "SUCCESS" },
@@ -1764,7 +1764,7 @@ Here is the complete and final `Home.razor` component with all features integrat
};
///
- /// Returns a CSS class name based on the transaction type to apply visual styling in the grid template.
+ /// Returns a CSS class name based on the transaction type to apply visual styling in the Blazor Grid template.
///
private string GetCategoryClass(TransactionModel data)
{
diff --git a/blazor/datagrid/connecting-to-database/postgresql-server.md b/blazor/datagrid/connecting-to-database/postgresql-server.md
index 145b9cdf43..299e67e9b1 100644
--- a/blazor/datagrid/connecting-to-database/postgresql-server.md
+++ b/blazor/datagrid/connecting-to-database/postgresql-server.md
@@ -37,8 +37,8 @@ Ensure the following software and packages are installed before proceeding:
| .NET SDK | net10.0 or compatible | Runtime and build tools |
| PostgreSQL Server | 12 or later | Database server |
| pgAdmin 4 | Latest | PostgreSQL GUI management tool |
-| Syncfusion.Blazor.Grid | {{site.blazorversion}} | DataGrid and UI components |
-| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for DataGrid components |
+| Syncfusion.Blazor.Grid | {{site.blazorversion}} | Blazor DataGrid and UI components |
+| Syncfusion.Blazor.Themes | {{site.blazorversion}} | Styling for Blazor DataGrid components |
| Microsoft.EntityFrameworkCore | 10.0.2 or later | Core framework for database operations |
| Npgsql.EntityFrameworkCore.PostgreSQL | 10.0.0 or later | PostgreSQL provider for Entity Framework Core |
@@ -676,7 +676,7 @@ app.Run();
**Explanation:**
-- **`AddSyncfusionBlazor()`**: Registers Blazor components (DataGrid, themes, etc.).
+- **`AddSyncfusionBlazor()`**: Registers Blazor components (Blazor DataGrid, themes, etc.).
- **`AddDbContext`**: Registers the DbContext with PostgreSQL as the database provider using `UseNpgsql()`.
- **Connection String Validation**: Ensures the connection string is configured before attempting to connect.
- **`EnableSensitiveDataLogging()`**: Enabled in development to log detailed information about database operations (useful for debugging).
@@ -692,7 +692,7 @@ The service registration has been completed successfully.
### Step 1: Install and Configure Blazor DataGrid Components
-Syncfusion is a library that provides pre-built UI components like DataGrid, which is used to display data in a table format.
+Syncfusion is a library that provides pre-built UI components like Blazor DataGrid, which is used to display data in a table format.
**Instructions:**
@@ -718,7 +718,7 @@ Syncfusion is a library that provides pre-built UI components like DataGrid, whi
```
For this project, the tailwind3 theme is used. A different theme can be selected or the existing theme can be customized based on project requirements. Refer to the [Blazor Components Appearance](https://blazor.syncfusion.com/documentation/appearance/themes) documentation to learn more about theming and customization options.
-Blazor components are now configured and ready to use. For additional guidance, refer to the Grid component's [getting-started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
+Blazor components are now configured and ready to use. For additional guidance, refer to the Blazor Grid component's [getting-started](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app) documentation.
### Step 2: Update the Blazor DataGrid
@@ -727,7 +727,7 @@ The `Home.razor` component will display the purchase order data in a Blazor Data
**Instructions:**
1. Open the file named `Home.razor` in the `Components/Pages` folder.
-2. Add the following code to create a DataGrid:
+2. Add the following code to create a Blazor DataGrid:
```cshtml
@page "/"
@@ -761,11 +761,11 @@ The `Home.razor` component will display the purchase order data in a Blazor Data
**Component Explanation:**
- **`@inject PurchaseOrderRepository`**: Injects the repository to access database methods.
-- **``**: The DataGrid component that displays data in rows and columns.
-- **``**: Defines individual columns in the DataGrid.
+- **``**: The Blazor DataGrid component that displays data in rows and columns.
+- **``**: Defines individual columns in the Blazor DataGrid.
- **``**: Configures pagination with 10 records per page.
-The Home component has been updated successfully with DataGrid.
+The Home component has been updated successfully with Blazor DataGrid.
---
@@ -773,7 +773,7 @@ The Home component has been updated successfully with DataGrid.
The Blazor DataGrid can bind data from a **PostgreSQL** database using [DataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) and set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Adaptors.html) property to [CustomAdaptor](https://blazor.syncfusion.com/documentation/datagrid/connecting-to-adaptors/custom-adaptor) for scenarios that require full control over data operations.
-The `CustomAdaptor` is a bridge between the DataGrid and the PostgreSQL database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
+The `CustomAdaptor` is a bridge between the Blazor DataGrid and the PostgreSQL database. It handles all data operations including reading, searching, filtering, sorting, paging, and CRUD operations. Each operation in the CustomAdaptor's `ReadAsync` method handles specific grid functionality. The Blazor DataGrid sends operation details to the API through a [DataManagerRequest](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataManagerRequest.html) object. These details can be applied to the data source using methods from the [DataOperations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DataOperations.html) class.
**Instructions:**
@@ -792,8 +792,8 @@ The `CustomAdaptor` is a bridge between the DataGrid and the PostgreSQL database
}
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid.
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid.
///
public class CustomAdaptor : DataAdaptor
{
@@ -807,7 +807,7 @@ The `CustomAdaptor` is a bridge between the DataGrid and the PostgreSQL database
///
/// ReadAsync retrieves records from the database and applies data operations.
- /// This method executes when the grid initializes and when filtering, searching, sorting, or paging occurs.
+ /// This method executes when the Blazor Grid initializes and when filtering, searching, sorting, or paging occurs.
///
public override async Task
```
@@ -950,7 +950,7 @@ dotnet run
2. Navigate to `https://localhost:5001` (or the port shown in the terminal).
3. The Purchase Order Management System is now running and ready to use.
-
+
---
@@ -970,7 +970,7 @@ Paging divides large datasets into smaller pages to improve performance and usab
-
+
```
@@ -1018,7 +1018,7 @@ Fetches purchase orders by calling the `GetPurchaseOrdersDataAsync` method imple
**How Paging Works:**
-- The DataGrid displays 10 records per page (as set in `GridPageSettings`).
+- The Blazor DataGrid displays 10 records per page (as set in `GridPageSettings`).
- Navigation buttons allow the user to move between pages.
- When a page is requested, the `ReadAsync` method receives skip and take values.
- The `DataOperations.PerformSkip()` and `DataOperations.PerformTake()` methods handle pagination.
@@ -1042,7 +1042,7 @@ Searching allows the user to find purchase order records by entering keywords in
Toolbar="@ToolbarItems">
-
+
```
@@ -1092,10 +1092,10 @@ Searching allows the user to find purchase order records by entering keywords in
**How Searching Works:**
-- When the user enters text in the search box and presses Enter, the DataGrid sends a search request to the CustomAdaptor.
+- When the user enters text in the search box and presses Enter, the Blazor DataGrid sends a search request to the CustomAdaptor.
- The `ReadAsync` method receives the search criteria in `dataManagerRequest.Search`.
- The `DataOperations.PerformSearching()` method filters the data based on the search term across all columns (PoNumber, ItemName, Status, VendorID, etc.).
-- Results are returned and displayed in the DataGrid.
+- Results are returned and displayed in the Blazor DataGrid.
Searching feature is now active.
@@ -1119,7 +1119,7 @@ Filtering allows the user to restrict purchase order data based on column values
-
+
```
@@ -1180,7 +1180,7 @@ Filtering allows the user to restrict purchase order data based on column values
- Click the "Filter" button to apply the filter.
- The `ReadAsync` method receives the filter criteria in `dataManagerRequest.Where`.
- The `DataOperations.PerformFiltering()` method applies the filter conditions to the data.
-- Results are filtered accordingly and displayed in the DataGrid.
+- Results are filtered accordingly and displayed in the Blazor DataGrid.
- Common filter use cases: Filter by Status (Pending, Approved, Ordered, etc.), VendorID, ItemCategory, or OrderDate range.
Filtering feature is now active.
@@ -1207,7 +1207,7 @@ Sorting enables the user to arrange purchase order records in ascending or desce
-
+
```
@@ -1268,7 +1268,7 @@ Sorting enables the user to arrange purchase order records in ascending or desce
- Click again to sort in descending order.
- The `ReadAsync` method receives the sort criteria in `dataManagerRequest.Sorted`.
- The `DataOperations.PerformSorting()` method sorts the data based on the specified column and direction.
-- Records are sorted accordingly and displayed in the DataGrid.
+- Records are sorted accordingly and displayed in the Blazor DataGrid.
- Sorting can be applied to all columns: PoNumber, ItemName, Status, OrderDate, TotalAmount, etc.
Sorting feature is now active.
@@ -1294,7 +1294,7 @@ Grouping organizes purchase order records into hierarchical groups based on colu
-
+
```
@@ -1370,9 +1370,9 @@ Grouping feature is now active.
### Step 11: Perform CRUD operations
-CustomAdaptor methods enable users to create, read, update, and delete purchase order records directly from the DataGrid. Each operation calls corresponding data layer methods in **PurchaseOrderRepository.cs** to execute PostgreSQL commands.
+CustomAdaptor methods enable users to create, read, update, and delete purchase order records directly from the Blazor DataGrid. Each operation calls corresponding data layer methods in **PurchaseOrderRepository.cs** to execute PostgreSQL commands.
-Add the Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
+Add the Blazor Grid **EditSettings** and **Toolbar** configuration to enable create, read, update, and delete (CRUD) operations.
```cshtml
-
+
```
@@ -1401,7 +1401,7 @@ Add the toolbar items list in the `@code` block:
**Insert**
-Record insertion allows new purchase orders to be added directly through the DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the PostgreSQL database.
+Record insertion allows new purchase orders to be added directly through the Blazor DataGrid component. The adaptor processes the insertion request, performs any required business‑logic validation, and saves the newly created record to the PostgreSQL database.
In **Home.razor**, implement the `InsertAsync` method within the `CustomAdaptor` class:
@@ -1505,13 +1505,13 @@ In **Data/PurchaseOrderRepository.cs**, the insert method is implemented as:
4. Default values are set for timestamps and status.
5. The new record is added to the `_context.PurchaseOrders` collection.
6. `SaveChangesAsync()` persists the record to the PostgreSQL database.
-7. The DataGrid automatically refreshes to display the new record.
+7. The Blazor DataGrid automatically refreshes to display the new record.
-Now the new purchase order is persisted to the database and reflected in the grid.
+Now the new purchase order is persisted to the database and reflected in the Blazor Grid.
**Update**
-Record modification allows purchase order details to be updated directly within the DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **PostgreSQL database** while ensuring data integrity is preserved.
+Record modification allows purchase order details to be updated directly within the Blazor DataGrid. The adaptor processes the edited row, validates the updated values, and applies the changes to the **PostgreSQL database** while ensuring data integrity is preserved.
In **Home.razor**, implement the `UpdateAsync` method within the `CustomAdaptor` class:
@@ -1590,13 +1590,13 @@ public async Task UpdatePurchaseOrderAsync(PurchaseOrder value)
5. All properties are updated with the new values.
6. The `UpdatedOn` timestamp is automatically set to the current time.
7. `SaveChangesAsync()` persists the changes to the PostgreSQL database.
-8. The DataGrid refreshes to display the updated record.
+8. The Blazor DataGrid refreshes to display the updated record.
-Now modifications are synchronized to the database and reflected in the grid UI.
+Now modifications are synchronized to the database and reflected in the Blazor Grid UI.
**Delete**
-Record deletion allows purchase orders to be removed directly from the DataGrid. The adaptor captures the delete request, executes the corresponding **PostgreSQL DELETE** operation, and updates both the database and the grid to reflect the removal.
+Record deletion allows purchase orders to be removed directly from the Blazor DataGrid. The adaptor captures the delete request, executes the corresponding **PostgreSQL DELETE** operation, and updates both the database and the Blazor Grid to reflect the removal.
In **Home.razor**, implement the `RemoveAsync` method within the `CustomAdaptor` class:
@@ -1662,15 +1662,15 @@ public async Task RemovePurchaseOrderAsync(int? key)
**What happens behind the scenes:**
1. The user selects a record and clicks "Delete".
-2. A confirmation dialog appears (built into the DataGrid).
+2. A confirmation dialog appears (built into the Blazor DataGrid).
3. If confirmed, the CustomAdaptor's `RemoveAsync()` method is called.
4. The `PurchaseOrderRepository.RemovePurchaseOrderAsync()` method is called.
5. The record is located in the database by its ID.
6. The record is removed from the `_context.PurchaseOrders` collection.
7. `SaveChangesAsync()` executes the DELETE statement in PostgreSQL.
-8. The DataGrid refreshes to remove the deleted record from the UI.
+8. The Blazor DataGrid refreshes to remove the deleted record from the UI.
-Now purchase orders are removed from the database and the grid UI reflects the changes immediately.
+Now purchase orders are removed from the database and the Blazor Grid UI reflects the changes immediately.
**Batch update**
@@ -1714,7 +1714,7 @@ public class CustomAdaptor : DataAdaptor
}
```
-> This method is triggered when the DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
+> This method is triggered when the Blazor DataGrid is operating in [Batch](https://blazor.syncfusion.com/documentation/datagrid/batch-editing) Edit mode.
---
@@ -1779,8 +1779,8 @@ Now that all the CustomAdaptor methods are implemented for CRUD operations, the
}
///
- /// CustomAdaptor class bridges DataGrid interactions with database operations.
- /// This adaptor handles all data retrieval and manipulation for the DataGrid,
+ /// CustomAdaptor class bridges Blazor DataGrid interactions with database operations.
+ /// This adaptor handles all data retrieval and manipulation for the Blazor DataGrid,
/// including Search, Filter, Sort, Group, Paging, and CRUD operations.
///
public class CustomAdaptor : DataAdaptor
@@ -1795,7 +1795,7 @@ Now that all the CustomAdaptor methods are implemented for CRUD operations, the
///
/// ReadAsync retrieves records from the database and applies data operations.
- /// This method executes when the grid initializes and when filtering, searching, sorting, or paging occurs.
+ /// This method executes when the Blazor Grid initializes and when filtering, searching, sorting, or paging occurs.
///
public override async Task