I am trying to programmatically set my filter plugin for an enhanced grid. Here is the approach I am taking:
//concat query string
console.log(queryString);
grid.setFilter(queryString, 'logicany');
However, I am encountering an error:
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined FilterDefDialog.js.uncompressed.js:949
When I look at the console log for the query string, it appears as:
[{type:'string',column:1,condition:'contains',value:'test'},{type:'string',column:1,condition:'contains',value:'13'}]
Interestingly, when I manually set a hardcoded query string like this:
grid.setFilter([{type:'string',column:1,condition:'contains',value:'test'},{type:'string',column:1,condition:'contains',value:'13'}], 'logicany');
it works perfectly fine. Can anyone help me identify what might be wrong with my initial approach?