admin ui 中的jqgridvar ids = []; //定义成全局jQuery(grid_selector).jqGrid({........
.......
loadComplete : function() { var table = this; setTimeout(function(){ styleCheckbox(table); updateActionIcons(table); updatePagerIcons(table); enableTooltips(table); }, 0);},onSelectRow: function (id) { if (ids.length<=0) ids = jQuery(grid_selector).jqGrid('getGridParam', 'selarrrow'); if (id && ids.length > 1) { $(ids).each(function (i) { if (ids[i].toString() != id.toString()) jQuery(grid_selector).jqGrid('setSelection', ids[i].toString()); }); } return true;},
...
});