Your configuration is practically absent,
Not enough secret sauce to connect to MVC.
Suppose your DataSource configuration is as follows:
var myDataSource = new kendo.data.DataSource({ transport: { read: { url: 'Users/Read', type: 'POST' } }, serverSorting: true, serverFiltering: true, serverPaging: true }
On your server side in UserController.cs (example) you should get [DataSourceRequest]
public DataSourceResult Read([DataSourceRequest] DataSourceRequest request) {
Why is [DataSourceRequest] important?
Since it contains the parameters of the search call, sorting, filtering, which your grid requests on the server. Therefore, if you want to execute the algorithm yourself, you must examine the request and process these spurious elements. Remember to return an instance of the DataSourceResult object.
If your objects live in a cache, and your fields do not need special processing for filtering, grouping, sorting, etc., just use the Cendo C # ToDataSourceResult extension. It will process your elements and apply filtering, sorting, tuning of the search call using dynamic LINQ operators.
source share