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

What is the best approach to use an external filter

3 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jianwei
Top achievements
Rank 1
Jianwei asked on 18 Jun 2015, 05:24 PM

What is the best way to pass an external filter to a grid. Basically, I have a left side  filter like this https://www.coursera.org/courses, and I want to link the filter to a kendo Grid to retrieve the results, what is the best way to do that? Does Kendo has a built-in way to do this?

 

Thanks,

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 22 Jun 2015, 08:42 AM

Hello Jianwei,

 

An easy way to achieve this functionality would be to set a filter expression using the filter method of the grid's data source when a selection from the left side bar. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jianwei
Top achievements
Rank 1
answered on 22 Jun 2015, 12:22 PM

Thank you for your reply. 

Does this approach support the server side filtering? If so, what would be the required method signature on the serve side? 

 

0
Accepted
Boyan Dimitrov
Telerik team
answered on 23 Jun 2015, 12:59 PM

Hello Jianwei,

Indeed it supports server filtering. Please refer to this blog post for a sample code and specifically how to work with the DataSourceRequest, which contains the current grid request information - page, sort, group and filter.

Regards,
Boyan Dimitrov
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
Jianwei
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Jianwei
Top achievements
Rank 1
Share this question
or