Kendo Grid with repository pattern and filtering server side

2 posts, 1 answers
  1. Gary
    Gary avatar
    9 posts
    Member since:
    Feb 2013

    Posted 11 Mar 2016 Link to this post

    Hi,

    I was wondering what is the best way to implement the repository pattern with the kendo grid filtering server side.

    I know we can use the IQueryable interface but is not the best pratice to do this in your repository pattern.

    I took a look at the DataSourceRequest parameter passed in my web api controller.

    I wonder how I can convert the Kendo Filter object to use them in my repository pattern and if this is possible ?

    Thanks

  2. Answer
    Viktor Tachev
    Admin
    Viktor Tachev avatar
    2483 posts

    Posted 12 Mar 2016 Link to this post

    Hello Gary,

    You can use custom binding for the grid widget and retrieve the filter that is passed from the client. The filter should be available in the DataSourceRequest that is passed to the Read ActionMethod. Check out the following article that describes in more detail how you can implement Custom Binding.




    Regards,
    Viktor Tachev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top