I have a grid with many columns. I would like the default sopt for all of the columns to "in" without adding an entry for each column. Is there a way to do this?
1 Answers
If you want it in auto filter (top search bar) then you can edit lib/inc/jqgrid_dist.php
// auto filter with contains search
jQuery("#<?php echo $grid_id?>").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, defaultSearch:'cn'});
to
// auto filter with contains search
jQuery("#<?php echo $grid_id?>").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, defaultSearch:'in'});
Your Answer