What is the best approach to use an external filter

4 posts, 1 answers
  1. Jianwei
    Jianwei avatar
    20 posts
    Member since:
    Feb 2011

    Posted 18 Jun 2015 Link to this post

    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,

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 22 Jun 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Jianwei
    Jianwei avatar
    20 posts
    Member since:
    Feb 2011

    Posted 22 Jun 2015 in reply to Boyan Dimitrov Link to this post

    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? 

     

  5. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 23 Jun 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready