I'm getting a hard stop script error:
Uncaught Error: The filter condition that was passed was not recognized: contains
Initializing like this:
{ name: 'Filtering', allowFiltering: true, caseSensitive: false, type: 'local', }
Is there something I am missing?
Thanks
Hello Alex,
Thanks for pointing that one for me :). Please, accept my apologies.
I've logged an internal bug with number 139733 about that issue. It will be fixed on the next documentation update (It won't make it in 13.1 though).
Best regards,Martin PavlovInfragistics, Inc.
Hello Martin,
I attached a picture just for you. :)
http://oi49.tinypic.com/34xmbet.jpg
I can see that it's fine in the API list. But if you look at the original link I gave you a couple of posts up, you'll see what I'm talking about.
Alex
The documentation is fine. Note that you have to expand the columnSettings node in order to see the allowFiltering option. This means that the allowFiltering can be used in the columnSettings array. Also if you expand the allowFiltering you'll find the code snippet which shows how the property is used.
Thank you for the helpful reply, Martin. That makes sense now.
Also, regarding your side note-- you might want to update your documentation then!
http://help.infragistics.com/jQuery/2012.2/ui.iggridfiltering
Regards,
This error usually occurs when a condition is used on a data type which doesn't support the condition. For example if you use the igGridFiltering.filter API to filter a number column with condition "contains" you'll get this error, because the "contains" condition is available only for string columns. I'm attaching a sample which reproduces the issue.
You should check whether you use a igGridFiltering.filter API method.
As a side note allowFiltering property is not used correctly in your code. The allowFiltering property can be used in the columnSettings array and not on the filtering object.
Hope this helps, Martin PavlovInfragistics, Inc.