今天尝试使用Jqgrid控件中的subgrid(子表格),有出现数据回传了但是页面不显示数据情况;
代码如下:
multiselect: false,
subGrid: true,
subGridRowExpanded: function (subgrid_id, row_id) {//展开时做子表格
var rowData = $gridTable.jqGrid('getRowData', row_id);
var OrderID = rowData.ORDERID;
var subgrid_table_id, pager_id;
subgrid_table_id = subgrid_id + "_t";
pager_id = "p_"+subgrid_table_id;
$("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + pager_id + "' class='scroll'></div>");
jQuery("#" + subgrid_table_id).jqGrid({
ur