jqGrid Refresh WITH Filters
jqGrid's designed Refresh button will clear any searches your users have done. It's meant to be more of a 'Reset' than an actual refresh.
This custom button will just simply call reloadGrid and not clear the filters.
$('#grid').jqGrid( {
gridoptions...
colModel: [
]
} ).navButtonAdd("#grid_pager", {
caption:'', buttonicon: 'ui-icon-refresh',
onClickButton: function() {
$("#grid").trigger("reloadGrid");
}, position: 'first', title: 'Refresh'} );
Written by Charles Solar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#