Skip to content

Commit 8b8ed75

Browse files
Merge pull request #4168 from syncfusion-content/951563-github-sample
951563: Github links added
2 parents 5e031cc + d134278 commit 8b8ed75

File tree

12 files changed

+59
-38
lines changed

12 files changed

+59
-38
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/Connecting-to-adaptors/odatav4-adaptor.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will succe
300300

301301
> Replace https://localhost:xxxx/odata/Orders with the actual **URL** of your API endpoint that provides the data in a consumable format (e.g., JSON).
302302
303-
## Handling Searching Operation
303+
## Handling searching operation
304304

305305
To enable search operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `Filter` method within the OData setup, allowing you to filter data based on specified criteria. Once enabled, clients can utilize the **$filter** query option in their requests to search for specific data entries.
306306

@@ -333,7 +333,7 @@ config.Count().Filter(); // Handles searching operation.
333333

334334
![Searching query](../images/adaptors/odatav4-adaptor-searching.png)
335335

336-
## Handling Filtering Operation
336+
## Handling filtering operation
337337

338338
To enable filter operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `Filter` method within the OData setup, allowing you to filter data based on specified criteria. Once enabled, clients can utilize the **$filter** query option in your requests to filter for specific data entries.
339339

@@ -369,7 +369,7 @@ config.Count().Filter(); // Handles filtering operation.
369369
**Multi column filtering**
370370
![Filtering query](../images/adaptors/odatav4-adaptor-multi-column-filtering.png)
371371

372-
## Handling Sorting Operation
372+
## Handling sorting operation
373373

374374
To enable sorting operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `OrderBy` method within the OData setup, allowing you to sort data based on specified criteria. Once enabled, clients can utilize the **$orderby** query option in their requests to sort data entries according to desired attributes.
375375

@@ -406,7 +406,7 @@ config.Count().OrderBy(); // Handles sorting operation.
406406
**Multi column sorting**
407407
![Multi column sorting query](../images/adaptors/odatav4-adaptor-multi-column-sorting.png)
408408

409-
## Handling Paging Operation
409+
## Handling paging operation
410410

411411
To implement paging operations in your web application using OData, you can utilize the `SetMaxTop` method within your OData setup to limit the maximum number of records that can be returned per request. While you configure the maximum limit, clients can utilize the **$skip** and **$top** query options in their requests to specify the number of records to skip and the number of records to take, respectively.
412412

@@ -440,7 +440,7 @@ config.Count().MaxTop(recordCount); // Handles paging operation.
440440

441441
![paging query](../images/adaptors/odatav4-adaptor-paging.png)
442442

443-
## Handling CRUD Operations
443+
## Handling CRUD operations
444444

445445
To manage CRUD (Create, Read, Update, Delete) operations using the ODataV4Adaptor, follow the provided guide for configuring the Syncfusion Grid for [editing](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit) and utilize the sample implementation of the `OrdersController` in your server application. This controller handles HTTP requests for CRUD operations such as GET, POST, PATCH, and DELETE.
446446
@@ -540,6 +540,8 @@ public IHttpActionResult Delete(int key)
540540

541541
![Delete Record](../images/adaptors/odatav4-adaptor-delete-record.png)
542542

543+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/ODataV4Adaptor).
544+
543545
## Odata with custom url
544546

545547
The Syncfusion ODataV4 adaptor extends support for calling customized URLs to accommodate data retrieval and CRUD actions as per your application's requirements. However, when utilizing a custom URL with the ODataV4 adaptor, it's essential to modify the routing configurations in your application's route configuration file to align with your custom URL. You can invoke the custom URL by the following methods in the `DataManager`.

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/Connecting-to-adaptors/web-api-adaptor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,4 +605,6 @@ public void Delete(int key)
605605
}
606606
```
607607

608-
![WebApiAdaptor CRUD operations](../images/adaptors/adaptor-crud-operation.gif)
608+
![WebApiAdaptor CRUD operations](../images/adaptors/adaptor-crud-operation.gif)
609+
610+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/WebApiAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/Connecting-to-adaptors/web-method-adaptor.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will succe
296296
}
297297
```
298298

299-
## Handling Searching Operation
299+
## Handling searching operation
300300

301301
To enable search functionality, ensure that your API endpoint supports custom searching criteria. Implement the searching logic on the server-side using the `PerformSearching` method from the `QueryableOperation` class. This allows the custom data source to undergo searching based on the criteria specified in the incoming `DataManagerRequest` object.
302302

@@ -346,7 +346,7 @@ public class DataManager
346346
{% endhighlight %}
347347
{% endtabs %}
348348

349-
## Handling Filtering Operation
349+
## Handling filtering operation
350350

351351
To handle filtering operation, configure your API endpoint to support filter criteria. Implement the filtering logic on the server-side using the `PerformFiltering` method from the `QueryableOperation` class. This allows the custom data source to undergo filtering based on the criteria specified in the incoming `DataManagerRequest` object.
352352

@@ -407,7 +407,7 @@ public class DataManager
407407
{% endhighlight %}
408408
{% endtabs %}
409409

410-
## Handling Sorting Operation
410+
## Handling sorting operation
411411

412412
To handle sorting operation, configure your API to support custom sorting criteria. Implement the sorting logic on the server-side using the `PerformSorting` method from the `QueryableOperation` class. This allows the custom data source to undergo sorting based on the criteria specified in the incoming `DataManagerRequest` object.
413413

@@ -463,7 +463,7 @@ public class DataManager
463463
{% endhighlight %}
464464
{% endtabs %}
465465

466-
## Handling Paging Operation
466+
## Handling paging operation
467467

468468
To handle paging operation, configure your API endpoint to support custom paging criteria. Implement the paging logic on the server-side using the `PerformTake` and `PerformSkip` method from the `QueryableOperation` class. This allows the custom data source to undergo paging based on the custom paging criteria specified in the incoming `DataManagerRequest` object.
469469

@@ -738,3 +738,5 @@ public object BatchUpdate(CRUDModel<OrdersDetails> batchOperation)
738738
}
739739
```
740740
![WebMethodAdaptor Batch Editing](../images/adaptors/url-adaptor-batch-editing.gif)
741+
742+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/WebMethodAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/custom-adaptor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,4 +729,6 @@ public IHttpActionResult Delete(int key)
729729
return Ok(deleteRecord);
730730
}
731731
```
732-
![CustomAdaptor-Delete-record](../images/adaptors/ODataV4Adaptor/odatav4-adaptor-delete-record.png)
732+
![CustomAdaptor-Delete-record](../images/adaptors/ODataV4Adaptor/odatav4-adaptor-delete-record.png)
733+
734+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/CustomAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/odatav4-adaptor.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will succe
300300

301301
> Replace https://localhost:xxxx/odata/Orders with the actual **URL** of your API endpoint that provides the data in a consumable format (e.g., JSON).
302302
303-
## Handling Searching Operation
303+
## Handling searching operation
304304

305305
To enable search operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `Filter` method within the OData setup, allowing you to filter data based on specified criteria. Once enabled, clients can utilize the **$filter** query option in their requests to search for specific data entries.
306306

@@ -333,7 +333,7 @@ config.Count().Filter(); // Handles searching operation.
333333

334334
![Searching query](../images/adaptors/odatav4-adaptor-searching.png)
335335

336-
## Handling Filtering Operation
336+
## Handling filtering operation
337337

338338
To enable filter operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `Filter` method within the OData setup, allowing you to filter data based on specified criteria. Once enabled, clients can utilize the **$filter** query option in your requests to filter for specific data entries.
339339

@@ -369,7 +369,7 @@ config.Count().Filter(); // Handles filtering operation.
369369
**Multi column filtering**
370370
![Filtering query](../images/adaptors/odatav4-adaptor-multi-column-filtering.png)
371371

372-
## Handling Sorting Operation
372+
## Handling sorting operation
373373

374374
To enable sorting operations in your web application using OData, you first need to configure the OData support in your service collection. This involves adding the `OrderBy` method within the OData setup, allowing you to sort data based on specified criteria. Once enabled, clients can utilize the **$orderby** query option in their requests to sort data entries according to desired attributes.
375375

@@ -406,7 +406,7 @@ config.Count().OrderBy(); // Handles sorting operation.
406406
**Multi column sorting**
407407
![Multi column sorting query](../images/adaptors/odatav4-adaptor-multi-column-sorting.png)
408408

409-
## Handling Paging Operation
409+
## Handling paging operation
410410

411411
To implement paging operations in your web application using OData, you can utilize the `SetMaxTop` method within your OData setup to limit the maximum number of records that can be returned per request. While you configure the maximum limit, clients can utilize the **$skip** and **$top** query options in their requests to specify the number of records to skip and the number of records to take, respectively.
412412

@@ -440,7 +440,7 @@ config.Count().MaxTop(recordCount); // Handles paging operation.
440440

441441
![paging query](../images/adaptors/odatav4-adaptor-paging.png)
442442

443-
## Handling CRUD Operations
443+
## Handling CRUD operations
444444

445445
To manage CRUD (Create, Read, Update, Delete) operations using the ODataV4Adaptor, follow the provided guide for configuring the Syncfusion Grid for [editing](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit) and utilize the sample implementation of the `OrdersController` in your server application. This controller handles HTTP requests for CRUD operations such as GET, POST, PATCH, and DELETE.
446446
@@ -540,6 +540,8 @@ public IHttpActionResult Delete(int key)
540540

541541
![Delete Record](../images/adaptors/odatav4-adaptor-delete-record.png)
542542

543+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/ODataV4Adaptor).
544+
543545
## Odata with custom url
544546

545547
The Syncfusion ODataV4 adaptor extends support for calling customized URLs to accommodate data retrieval and CRUD actions as per your application's requirements. However, when utilizing a custom URL with the ODataV4 adaptor, it's essential to modify the routing configurations in your application's route configuration file to align with your custom URL. You can invoke the custom URL by the following methods in the `DataManager`.

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/remote-save-adaptor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,5 @@ Now, add the Syncfusion ASP.NET MVC Grid in `~/Views/Home/Index.cshtml` page. T
362362
**Step 7:** Run the Project
363363

364364
Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will successfully fetch data from the API service.
365+
366+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/RemoteSaveAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/url-adaptor.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will succe
190190
> * In an API service project, add `Syncfusion.EJ2.MVC5` by opening the NuGet package manager in Visual Studio (ToolsNuGet Package ManagerManage NuGet Packages for Solution), search and install it.
191191
> * To access `DataManagerRequest`, import [Syncfusion.EJ2.Base](https://www.npmjs.com/package/@syncfusion/ej2-base) in `GridController.cs` file.
192192
193-
## Handling Searching Operation
193+
## Handling searching operation
194194

195195
To enable search functionality, ensure that your API endpoint supports custom searching criteria. Implement the searching logic on the server-side using the `PerformSearching`. This allows the custom data source to undergo searching based on the criteria specified in the incoming `DataManagerRequest` object.
196196

@@ -233,7 +233,7 @@ To enable search functionality, ensure that your API endpoint supports custom se
233233
{% endhighlight %}
234234
{% endtabs %}
235235

236-
## Handling Filtering Operation
236+
## Handling filtering operation
237237

238238
To handle filtering operation, configure your API endpoint to support filter criteria. Implement the filtering logic on the server-side using the `PerformFiltering`. This allows the custom data source to undergo filtering based on the criteria specified in the incoming `DataManagerRequest` object.
239239

@@ -278,7 +278,7 @@ To handle filtering operation, configure your API endpoint to support filter cri
278278
{% endhighlight %}
279279
{% endtabs %}
280280

281-
## Handling Sorting Operation
281+
## Handling sorting operation
282282

283283
To handle sorting operation, configure your API to support custom sorting criteria. Implement the sorting logic on the server-side using the `PerformSorting`. This allows the custom data source to undergo sorting based on the criteria specified in the incoming `DataManagerRequest` object.
284284

@@ -321,7 +321,7 @@ public ActionResult UrlDatasource(DataManagerRequest DataManagerRequest)
321321
{% endhighlight %}
322322
{% endtabs %}
323323

324-
## Handling Paging Operation
324+
## Handling paging operation
325325

326326
To handle paging operation, ensure that your API endpoint supports custom paging criteria. Implement the paging logic on the server-side using the `PerformTake` and `PerformSkip`. This allows the custom data source to undergo paging based on the criteria specified in the incoming `DataManagerRequest` object.
327327

@@ -369,7 +369,7 @@ To handle paging operation, ensure that your API endpoint supports custom paging
369369

370370
## Handling CRUD Operations
371371

372-
The Syncfusion ASP.NET MVC Grid seamlessly integrates CRUD (Create, Read, Update, Delete) operations with server-side controller actions through specific properties: `InsertUrl`, `RemoveUrl`, `UpdateUrl`,`CrudUrl`, and `BatchUrl`. These properties enable the Grid to communicate with the data service for every Grid action, facilitating server-side operations.
372+
The Syncfusion ASP.NET MVC Grid seamlessly integrates CRUD (Create, Read, Update, and Delete) operations with server-side controller actions through specific properties: `InsertUrl`, `RemoveUrl`, `UpdateUrl`,`CrudUrl`, and `BatchUrl`. These properties enable the Grid to communicate with the data service for every Grid action, facilitating server-side operations.
373373

374374
**CRUD Operations Mapping**
375375

@@ -472,7 +472,7 @@ public ActionResult Update(Orders value)
472472
}
473473
```
474474

475-
**Delete Operation**
475+
**Delete Operation:**
476476

477477
To delete existing records, use the `RemoveUrl` property to specify the controller action mapping URL for the delete operation.
478478

@@ -612,3 +612,5 @@ To perform batch operation, define the edit `Mode` as **Batch** and specify the
612612
{% endtabs %}
613613

614614
![UrlAdaptor Batch Editing](../images/adaptors/url-adaptors/url-adaptor-batch-editing.gif)
615+
616+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/UrlAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/web-api-adaptor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,4 +605,6 @@ public void Delete(int key)
605605
}
606606
```
607607

608-
![WebApiAdaptor CRUD operations](../images/adaptors/adaptor-crud-operation.gif)
608+
![WebApiAdaptor CRUD operations](../images/adaptors/adaptor-crud-operation.gif)
609+
610+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/WebApiAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-adaptors/web-method-adaptor.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Run the project in Visual Studio, and the Syncfusion ASP.NET MVC Grid will succe
296296
}
297297
```
298298

299-
## Handling Searching Operation
299+
## Handling searching operation
300300

301301
To enable search functionality, ensure that your API endpoint supports custom searching criteria. Implement the searching logic on the server-side using the `PerformSearching` method from the `QueryableOperation` class. This allows the custom data source to undergo searching based on the criteria specified in the incoming `DataManagerRequest` object.
302302

@@ -346,7 +346,7 @@ public class DataManager
346346
{% endhighlight %}
347347
{% endtabs %}
348348

349-
## Handling Filtering Operation
349+
## Handling filtering operation
350350

351351
To handle filtering operation, configure your API endpoint to support filter criteria. Implement the filtering logic on the server-side using the `PerformFiltering` method from the `QueryableOperation` class. This allows the custom data source to undergo filtering based on the criteria specified in the incoming `DataManagerRequest` object.
352352

@@ -407,7 +407,7 @@ public class DataManager
407407
{% endhighlight %}
408408
{% endtabs %}
409409

410-
## Handling Sorting Operation
410+
## Handling sorting operation
411411

412412
To handle sorting operation, configure your API to support custom sorting criteria. Implement the sorting logic on the server-side using the `PerformSorting` method from the `QueryableOperation` class. This allows the custom data source to undergo sorting based on the criteria specified in the incoming `DataManagerRequest` object.
413413

@@ -463,7 +463,7 @@ public class DataManager
463463
{% endhighlight %}
464464
{% endtabs %}
465465

466-
## Handling Paging Operation
466+
## Handling paging operation
467467

468468
To handle paging operation, configure your API endpoint to support custom paging criteria. Implement the paging logic on the server-side using the `PerformTake` and `PerformSkip` method from the `QueryableOperation` class. This allows the custom data source to undergo paging based on the custom paging criteria specified in the incoming `DataManagerRequest` object.
469469

@@ -738,3 +738,5 @@ public object BatchUpdate(CRUDModel<OrdersDetails> batchOperation)
738738
}
739739
```
740740
![WebMethodAdaptor Batch Editing](../images/adaptors/url-adaptor-batch-editing.gif)
741+
742+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp-net-mvc-data-grid/tree/master/WebMethodAdaptor).

ej2-asp-core-mvc/grid/EJ2_ASP.NETCORE/connecting-to-adaptors/custom-adaptor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,3 +749,5 @@ public IActionResult Delete(int key)
749749
}
750750
```
751751
![ODataV4Adaptor-Delete-record](../images/adaptors/ODataV4Adaptor/odatav4-adaptor-delete-record.png)
752+
753+
> Please find the sample in this [GitHub location](https://github.com/SyncfusionExamples/Binding-data-from-remote-service-to-asp.net-core-data-grid/tree/master/CustomAdaptor_EJ2Core).

ej2-asp-core-toc.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,11 @@
13121312
</li>
13131313
<li>Connecting to Database
13141314
<ul>
1315-
<li><a href="/ej2-asp-core/grid/connecting-to-database/sqlite-server">SQLite Server</a></li>
1316-
<li><a href="/ej2-asp-core/grid/connecting-to-database/postgresql-server">PostgreSQL Server</a></li>
1317-
</ul>
1318-
<ul>
1315+
<li><a href="/ej2-asp-core/grid/connecting-to-database/microsoft-sql-server">Microsoft SQL Server</a></li>
1316+
<li><a href="/ej2-asp-core/grid/connecting-to-database/mysql-server">MySQL Server</a></li>
1317+
<li><a href="/ej2-asp-core/grid/connecting-to-database">PostgreSQL Server</a></li>
1318+
<li><a href="/ej2-asp-core/grid/connecting-to-database/sqlite">SQLite Server</a></li>
1319+
<li><a href="/ej2-asp-core/grid/connecting-to-database/dapper">Dapper</a></li>
13191320
<li><a href="/ej2-asp-core/grid/connecting-to-database/entity-framework">Entity Framework</a></li>
13201321
</ul>
13211322
</li>

0 commit comments

Comments
 (0)