您的位置:首页 > 其它

jqGrid 获取某一行的某个字段的数据

2016-12-19 00:00 211 查看
colNames: ['序号', '待办类别', '流程对象', '发送时间', '流程状态', '意见', '操作路径', '状态'],
colModel: [
{ name: 'id', index: 'a.ID_', width: 100 },
/*{ name: 'todoType', index: 'a.TODO_TYPE_', width: 100 },*/
{ name: 'bizStatus', width: 120, formatter: todoTypeFmatter },
{ name: 'flowObj', index: 'a.FLOW_OBJ_', width: 150 },
{ name: 'sendTime', index: 'a.SEND_TIME_', width: 100 },
{ name: 'bizStatus', index: 'a.BIZ_STATUS_', width: 100, formatter: bizStatusProcessingFlowFmatter },
{ name: 'advice', index: 'a.ADVICE_', width: 100 },
{ name: 'bizStatus', width: 100, hidden: true },
{ name: 'disposeStatus', index: 'a.DISPOSE_STATUS_', width: 100, hidden: true }

],

//获取选择的一行的 ,某个 字段的 数据

var id = $(grid_selector).jqGrid('getGridParam', 'selrow');
if (id) {
var ret = $(grid_selector).jqGrid('getRowData', id);
console.log(ret.bizStatus + ">>>>>" + ret.disposeStatus);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: