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

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 }orm

        ],对象

 

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

 var id = $(grid_selector).jqGrid('getGridParam', 'selrow');
    if (id) {
        var ret = $(grid_selector).jqGrid('getRowData', id);
        console.log(ret.bizStatus + ">>>>>" + ret.disposeStatus);console

相关文章
相关标签/搜索