//获取当前页条数
var rowNum = $("#yourGrid").jqGrid('getGridParam', 'rowNum');
//获取总数 (包含未显示的数据)
var total = $("#yourGrid").jqGrid('getGridParam', 'records');
//把grid重新加载成全部数据
$("#yourGrid").jqGrid('setGridParam', { rowNum: total }).trigger('reloadGrid');
//获取全部数据
var allData=$('#yourGrid').jqGrid("getRowData");
//还原成原先状态
$("#yourGrid").jqGrid('setGridParam', { rowNum: rowNum }).trigger('reloadGrid');