This is a migrated thread and some comments may be shown as answers.

Best solution to server side filtering.

1 Answer 460 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cameron
Top achievements
Rank 1
Cameron asked on 02 Jun 2015, 03:44 PM

Hey,

 I have a grid with a datasource that needs to have all of its datasource modifications done server side because the results can be quite large and I want to use the filters provided. I see that the DataSourceRequest returns a list of filters, however these filters can come back in a number of different structures depending on the number of filters applied. 

I was wondering if you had a solution for converting these into something that can be used to query oData or converted in to linq where clauses.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 04 Jun 2015, 10:38 AM

Hello Cameron,

 

What we have as a solution for the server side filtering is the ToDataSourceResult() method that will take care of the filtering on the server, the same is explained here:

 

http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/ajax-editing

 

If this does not satisfy your requirements, you can use the custom binding and handle the filtering on the server by yourself. This is explained here:

 

http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/custom-binding

 

However if you want to convert the filters to LINQ, then we do not have such solution.

 

Regards,
Kiril Nikolov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Cameron
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or