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

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

1 Answer 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 29 Mar 2016, 06:29 PM

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?

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 31 Mar 2016, 10:47 AM

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!
 
Tags
Grid
Asked by
Chad
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or