I must just not be looking in the right place, but where’s the API documentation for the .ts side of things?
For example, on this filtering page you have the following, but I can’t find any info the parameters for createfilter()
and addfilter()
. Like, what is filter_or_operator
, and how would you know to set it to 1? What are all the possible values for filtercondition
?
I’m just trying to filter a single field via a radio button outside the grid, but can’t for the life of me figure out how without knowing how to create a custom filter.
addfilter = (): void => {
let filtergroup = new jqx.filter();
let filter_or_operator = 1;
let filtervalue = 'Beate';
let filtercondition = 'contains';
let filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
filtervalue = 'Andrew';
filtercondition = 'starts_with';
let filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
filtergroup.addfilter(filter_or_operator, filter1);
filtergroup.addfilter(filter_or_operator, filter2);
this.myGrid.addfilter('firstname', filtergroup, true);
this.myGrid.applyfilters();
}