I am using the Loader interface when creating my grid. I have filtering's mode set to 'local'. I would like to set my active column to filter for True by default so I am not showing all records. How can I do this? When not using the loader I was using the below javascript.
$("#userGrid").igGridFiltering('filter', ([{ fieldName: "Active", expr: "true", cond: "equals"}]));
I have tried to do the same thing using the events supplied by the grid however I get errors when trying to filter the grid. It says the below error
Uncaught Error: cannot call methods on igGridFiltering prior to initialization; attempted to call method 'filter'
Nope, I will just wait for a fix. Thanks for the help
Mike, let me know if you need any additional help. Thanks,
Angel
hey Mike,
unfortunately it looks like this is an internal issue with the ig.DataSource, and i've created a development bug for you. I'm sure our engineers will address it quickly. In the meantime, you may call filter (..) on the data source object once it's been created , and pass it to the grid afterwards. The drawback of this will be that the filtering UI in the grid won't show the pre-selected filters. I've asked our engineers to address this as well.
Sorry for the inconvenience and thanks for the great feedback.
Nope, this still does not work. Any way to get a sample of a working one? Thanks.
Hey,
I guess it's because you have a typo - it's not "expressings" but "expressions".
Let me know if it helps. Thanks