JQgrid获取选中行的某个字段值

时间:2021-01-29 14:51:35
    var rowKey = $("#jqGrid").jqGrid('getGridParam', "selrow");
var rowData = $("#jqGrid").jqGrid("getRowData", rowKey);//根据上面的rowKey获得本行的所有数据
var time = rowData.ReservationTime; //获得制定列的值 (ReservationTime为colModel的name)

 

 

感谢:http://doc.okbase.net/1778309/archive/113456.html