Skip to content

Commit 6225c21

Browse files
documentation(384809):Updated sample.
1 parent b78af53 commit 6225c21

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/data-binding/data-binding.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,15 @@ The following example demonstrates how to prevent local time zone conversion for
257257

258258
![Prevent to convert local time zone format](../images/databinding/local-time.gif)
259259

260-
## How to set custom headers using a custom adaptor in Syncfusion Grid
260+
## How to set custom headers using a custom adaptor in Syncfusion ASP.NET MVC Grid
261261

262-
Custom headers allow you to send extra information along with your HTTP requests. This information can include authentication tokens, API keys, or any other data required by the server to process the request correctly. By adding custom headers, you can enhance the security and functionality of your application's data communication process.
262+
Custom headers in HTTP requests are used to send additional information such as authentication tokens, API keys, or metadata required by the server. These headers improve security and enable better control over data communication. In the Syncfusion ASP.NET MVC Grid, custom headers can be added when making API requests, ensuring that each request carries the necessary information for server-side validation and processing.
263263

264-
This section explains how to integrate custom headers into Syncfusion Grid using the `beforeSend` method of the `WebApiAdaptor`.
264+
This method is particularly useful when integrating the Grid with authenticated APIs, where requests must include authorization tokens or other security credentials to ensure secure access.
265+
266+
To achieve this, the `WebApiAdaptor` can be extended to create the custom adaptor. The `beforeSend` method in the custom adaptor allows modifying request headers before sending them to the server. This ensures that every request from the Grid includes the required headers.
267+
268+
The following example demonstrates how to set custom headers using the custom adaptor in Syncfusion ASP.NET MVC Grid.
265269

266270
{% tabs %}
267271
{% highlight razor tabtitle="CSHTML" %}

ej2-asp-core-mvc/grid/EJ2_ASP.NETCORE/data-binding/data-binding.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,15 @@ The following example demonstrates how to prevent local time zone conversion for
257257

258258
![Prevent to convert local time zone format](../images/databinding/local-time.gif)
259259

260-
## How to set custom headers using a custom adaptor in Syncfusion Grid
260+
## How to set custom headers using a custom adaptor in Syncfusion ASP.NET Core Grid
261261

262-
Custom headers allow you to send extra information along with your HTTP requests. This information can include authentication tokens, API keys, or any other data required by the server to process the request correctly. By adding custom headers, you can enhance the security and functionality of your application's data communication process.
262+
Custom headers in HTTP requests are used to send additional information such as authentication tokens, API keys, or metadata required by the server. These headers improve security and enable better control over data communication. In the Syncfusion ASP.NET Core Grid, custom headers can be added when making API requests, ensuring that each request carries the necessary information for server-side validation and processing.
263263

264-
This section explains how to integrate custom headers into Syncfusion Grid using the `beforeSend` method of the `WebApiAdaptor`.
264+
This method is particularly useful when integrating the Grid with authenticated APIs, where requests must include authorization tokens or other security credentials to ensure secure access.
265+
266+
To achieve this, the `WebApiAdaptor` can be extended to create the custom adaptor. The `beforeSend` method in the custom adaptor allows modifying request headers before sending them to the server. This ensures that every request from the Grid includes the required headers.
267+
268+
The following example demonstrates how to set custom headers using the custom adaptor in Syncfusion ASP.NET Core Grid.
265269

266270
{% tabs %}
267271
{% highlight cshtml tabtitle="CSHTML" %}

0 commit comments

Comments
 (0)