We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Server-side API for DataManager operations with IQueryable data

The DataManager class helps in binding the Grid queries passed to the server-side. Based on those queries you can perform server-side operation on the Grid data.

The query parameters that help you perform the server-side operations are as follows.

Table 1: Query Parameters

Expand

It is used as OData Expand query.

RequiresCounts

When this property is set as True, the total count of records are included in the result.

Skip

Details regarding current page are skipped.

Take

Used to take required records from data manager.

Sorted

Records return the sorted collection.

Table

It is a data source table name.

Where

Records return the filter collection.

DataManager Operations:

The query parameters are serialized by the DataManager class and the server-side operations such as sorting, filtering, paging are performed by the PerformSorting, PerfomWhereFilter, PerformSkip and PerformTake methods.

C#

DataOperations Method:

You can also perform the server side operation such as filtering, paging and sorting by using the DataOperations Execute method instead of using the individual methods. The following code example shows you how to use the Execute method in the DataManager.

Table 2: Server side operation order for Execute method

Server side operation Orders

  1. PerformWhereFilter
  1. PerformSearching
  1. PerformSorting
  1. PerformSelect
  1. PerformSkip
  1. PerformTake

C#

MVC

In the following code example is demonstrated the server-side operation using UrlAdaptor.

C#

ASP

In ASP.NET, the server-side operation is performed by using the WebMethodAdaptor, and the DataManager parameter is set as value.

C#

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8434 02/14/2018 03/08/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon