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


     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
    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:



    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:



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


    Kiril Nikolov
    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