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

Kendo Grid with repository pattern and filtering server side

1 Answer 319 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 11 Mar 2016, 03:46 PM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 12 Mar 2016, 09:30 AM
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!
 
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or