Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Default filter when using local filtering
posted

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'