Any one using this yet in 4.0? I have column filters feature configured to show up in all of my columns and I can type a filter string in and click the Filters menu item and the filterupdate event fires. However, when I try to call getFilterData on the filters feature, it does not return anything.
The getFiltersData functions looks like this:
getFilterData : function () {
var filters = [], i, len;
this.filters.each(function (f) {
if (f.active) {
var d = [].concat(f.serialize());
for (i = 0, len = d.length; i < len; i++) {
filters.push({
field: f.dataIndex,
data: d[i]
});
}
}
});
return filters;
},
It turns out f.active never returns true .. not even for the current active column.
I am also seeing that the check box for the filter menu is not getting checked. So I am wondering if the two are related and what I am doing wrong.
On the grid, the features property is set as follows: