Hello
I have a grid with a column OccurrenceID.
I am using this to filter by a specfici OccurrenceID:
function FilterGird (value, condition) {
var filtergroup = new $.jqx.filter();
var filtervalue = value;
var filtercondition = condition;
var filter_or_operator = 1;
var filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
filtergroup.addfilter(filter_or_operator, filter1);
$('#OccurrencesGrid').jqxGrid('addfilter', 'OccurrenceID', filtergroup);
$("#OccurrencesGrid").jqxGrid('sortby', 'OccurrenceID', 'desc');
$('#OccurrencesGrid').jqxGrid('applyfilters');
}
Then I use:
FilterGird(2, 'EQUAL');
To filter by OccurrenceID = 2.
But I need to filter by several OccurrenceID, for example: 2, 4, 6, 10
How can I do this? Can I pass an array into the filter?
Thank you