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

相關文章
相關標籤/搜索