Datasource server-client mixed filtering

4 posts, 0 answers
  1. Emanuele
    Emanuele avatar
    21 posts
    Member since:
    Dec 2009

    Posted 28 Jul 2013 Link to this post

    Can I server side filter a datasource for one field and client filter the datasource for others field ?

    Something like this:

    filter: {
                                filters: [
                                    { field: "showHiddenFiles", value: false, serverFilter: true },
                                    { field: "name", value: "mike", serverFilter: false }
                                ]
                            }
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2598 posts

    Posted 29 Jul 2013 Link to this post

    Hi Emanuele,

    Using different filtering in the DataSource configuration is not a supported functionality. However you can filter the DataSource using the filter configuration, and after that using the Kendo UI API you can apply additional filters later on. 

    For your convenience here is a jsBin example which demonstrates a possible implementation.
     
    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Sam
    Sam avatar
    10 posts
    Member since:
    Sep 2015

    Posted 02 Aug Link to this post

    I'm wondering if, in the last 4 years, this feature has been implemented? If not, is there a more modern workaround for it?
  4. Stefan
    Admin
    Stefan avatar
    1025 posts

    Posted 04 Aug Link to this post

    Hello Sam,

    Currently, using both server side and client side filtering(and operations in general) is not supported and recommended as it can lead to unexpected issues.

    For example, this will create a scenario where the Grid data has to be sorted once on the server and once on the client, causing two rebinds of the Grid and impacting its performance.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top