How I can filtering two or more column with the same filtering
e.g.
var searchText = $(“#searchField”).val();
var filtergroup = new $.jqx.filter();
var filter_or_operator = 1;
var filtervalue = searchText;
var filtercondition = ‘contains’;
var filter = filtergroup.createfilter(‘stringfilter’, filtervalue, filtercondition);
filtergroup.addfilter(filter_or_operator, filter);
//filtergroup.addfilter(filter_or_operator, filter1);
$(“#jqxgrid”).jqxGrid(‘addfilter’, “firstname”, filtergroup);
// apply the filters.
$(“#jqxgrid”).jqxGrid(‘applyfilters’);
I have that code but I want apply that at two column at the same time I want search by first name and last name if I write the first name i want the result but if I write the last name I want the result too, I just got for one of those any Idea to that for both criteria?
Thank you