Taking this example (http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithSearchingToolbarMultilpe.htm) from this question (Excel like filtering in jqgrid)
Is there a way to set the filter parameters from the start? For example, in the 'Shipped via' column, I would want 'TNT' and 'Intim' to be checked, leaving 'FedEx' unchecked.
One solution I thought was viable is to ship_via
if(id == 'gs_ship_via'){
_.forEach($options, function(option){
if(option.value != 'FexEx'){
option.selected = true;
} else {
option.selected = false;
}
});
}
The problem I run into after that is that it doesn't update the data in the grid. So, I need a different way to set the check box after it's loaded in a way that will update the grid.