Best solution to server side filtering.

2 posts, 0 answers
  1. Cameron
    Cameron avatar
    13 posts
    Member since:
    May 2015

    Posted 02 Jun 2015 Link to this post

    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.

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 04 Jun 2015 Link to this post

    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
Back to Top