Hi,
I have enabled filters for grid column and it is working fine.
Is the anyway to get the datafield name on which we clearing the filter, on filter event.
NOTE : ‘getfilterinformation’ will get information of column which has value. Not if we remove the entered text.
here is the snippet :
$(“#jqxgrid”) .on(
“filter”,
function(event) {
var filterGroups = $(‘#jqxgrid’)
.jqxGrid(
‘getfilterinformation’);
var info = “”;
for (var i = 0; i < filterGroups.length; i++) {
var filterGroup = filterGroups[i];
var filters = filterGroup.filter.getfilters();
for (var j = 0; j < filters.length; j++) {
dataFieldName = filterGroup.filtercolumn;
setCookie(dataFieldName,
filters[j].value, 1);
}
}
});