3
votes

I have a Kendo grid and backend in ASP.WebApi

In Kendo Mvc there is the class DataSourceRequest and with the extension ToDataSourceResult you can filter your datasources with the parameters from the grid in the view.

Now i'm creating an application with HTML5 and Angular. For this solution i don't find a dll provided by Telerik.

Is there a way to easy take in the grid parameters (paging, sorting, filtering) and apply them to my IQueryable datasource?

1
kendo datasource requests send all that info to serverGene R
@GeneR yes it does. and you receive that info int he WebApi action, there is must be applied to a datasource to provide filtering sorting and paging. But i don't want to write the entire expression parsing for this.JMan
i dont see other way than using kendo mvc ToDataSourceResult or manually apply sorting, firltering and paging to your IEnumerable result. Btw sorting is applied always in grid on client side.Gene R
@GeneR it is not always applied clientside, you can set this attribute on the grid. It passes all parameter (sorting, filtering, paging) to the server and you have to implement it in your WebApi ActionJMan

1 Answers

3
votes

There are two ways to do that: