I have a jqGrid with navBar that has search: true and multipleSearch: true . I would like to add a button to my user interface that will automatically add an additional rule to the search.
I tried to directly manipulate postData for the filter, but the values ββadded in this way are not displayed in the search user interface.
I also tried to access the search box directly using jQuery, for example:
$('#fbox_list').searchFilter().add(); $('#fbox_list .sf .data input').each(function(index) { alert($(this).val()); });
But, besides the feeling of hacking, it only works if the user has already clicked the search button (fbox_list div is not designed at boot time).
Has anyone else dealt with such a problem?
javascript jquery jqgrid
Aaronseb
source share