dataSource.filter().filters is returning empty object {}

2 posts, 0 answers
  1. Chad
    Chad avatar
    1 posts
    Member since:
    Mar 2016

    Posted 29 Mar 2016 Link to this post

    Hi,

     

    I'm filtering my grid by using passing in a function to the operator like this:

     

    dataSource.filter({
        operator: setFilter
        }
    })

    var setFilter = function(item) {

    // iterate each item and return true or false if item matches value

    }

     

    this works perfectly and returns the correct view.  However, I need access to the filters applied.  Calling dataSource.filter().filters is returning empty object {}.  Can you help please?

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 31 Mar 2016 Link to this post

    Hello Chad,

     

    Could you please provide a sample dojo example that shows the described issue? Since it is for testing purpose the Kendo UI Grid could be populated with sample static data. 

     

    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