tabalinas / jsgrid

Lightweight Grid jQuery Plugin
http://js-grid.com
MIT License
1.53k stars 353 forks source link

Feature Request / Help - Want to set default filtering options #1412

Open settonull opened 2 years ago

settonull commented 2 years ago

I'd like to be able to have the grid have some default filtering options (in this case checkboxes) set when it first loads. I can not figure out if there is a way to programmatically set the filter values, either through jsgrid directly or jquery.

I saw there was a way to get the filters, $("#grid").jsGrid("getFilter") but no idea what a "plain object" is or how to manipulate it, it seemed to be an empty prototype object when I used chrome's inspect.