JqGrid使用レコード
646 ワード
1.JqGridデータの再ロード
2、カスタムフォーマット出力(formatter);パラメータcellValue:現在のセルの値.rowObject:現在の行オブジェクト、行全体のデータの属性を含む.options:現在のセルのoptions設定、{rowId,colModel,pos,gid}を含む
$("#list2").jqGrid('setGridParam',{url:url}).trigger("reloadGrid");
2、カスタムフォーマット出力(formatter);パラメータcellValue:現在のセルの値.rowObject:現在の行オブジェクト、行全体のデータの属性を含む.options:現在のセルのoptions設定、{rowId,colModel,pos,gid}を含む
jQuery("#myId").jqGrid({
url:'xxx.do',
datatype: "json",
colNames:[' 1'],
colModel:[
{name:' 1',index:' 1', width:120,formatter: function(cellValue,options,rowObject){alert(index. 1)
return pdJDDState(row,isShowDJState);
}}
]
});