1.jqgrid当想增加一列时需要先卸载掉原先加载的colModel,然后在重新加载,卸载的语句为:
$(“#gridTable”).GridUnload();
2.假设jqgrid的id是list,可以通过以下
(“#list”).jqGrid(“saveCell”,lastrow,lastcell);(“#list”).jqGrid(“restoreCell”,lastrow,lastcell);
保存或恢复就可以让cell变为非编辑状态,lastrow和lastcell是最后点击的那个cell的行和列全局变量,可以在beforeEditCell function中赋值
beforeEditCell:function(rowid,cellname,v,iRow,iCol){
lastrow = iRow;
lastcell = iCol;
}
724

被折叠的 条评论
为什么被折叠?



