jqgrid保存按钮,保存以后jqgrid自动刷新
jQuery("#grid_id").jqGrid('inlineNav','#gridpager',{
editParams:{
aftersavefunc: function( rowid, response ){
$("#grid_id").trigger("reloadGrid");
return true;
}
}
});
追加或编辑按下后 保存取消以外的按钮非活性
$("#grid_id_iladd").click(function(){
$(del_grid_id).addClass('ui-state-disabled');
$(search_grid_id).addClass('ui-state-disabled');
$(refresh_grid_id).addClass('ui-state-disabled');
});
$("#grid_id_iledit").click(function(){
$(del_grid_id).addClass('ui-state-disabled');
$(search_grid_id).addClass('ui-state-disabled');
$(refresh_grid_id).addClass('ui-state-disabled');
});
$("#grid_id_ilsave,#grid_id_ilcancel").click(function(){
$(del_grid_id).removeClass('ui-state-disabled');
$(search_grid_id).removeClass('ui-state-disabled');
$(refresh_grid_id).removeClass('ui-state-disabled');
});