Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement a data service that supports remote operations for dxDataGrid

$
0
0

This example demonstrates how to implement a data service based on ASP.NET WebAPI that supports remote operations for the dxDataGrid widget. The main idea is to get all parameters passed from the client side and use them when loading data from a data base to prepare data in the required manner. We performed the following steps to implement data loading:

1. Include the DevExtreme.AspNet.Data library into our project. You can do this using the NuGet package manager.
2. Get parameters from the GET request using a custom binder - see the WebApiDataSourceLoadOptionsBinder class.
3. Pass these parameters with the required DbContext to the DataSourceLoader.Load method.

In addition, please refer to the Use Custom Store - Remote Operations help topic to learn more about all supported remote operations of dxDataGrid. You can see an implementation of a custom store for dxDataGrid in the dxDataGrid - How to implement a custom store with CRUD operations example.


See also:
How to implement the Rest service based on an ASP.NET WebAPI application

Viewing all articles
Browse latest Browse all 7205

Trending Articles