这是我的网格:
colModel: [
{ name: "userGroupID", index: "userGroupID", width: 50, hidden:true, align: "left" },
//{ name: "userId", index: "userId", width: 75, align: "left",title:false,search:false, sorttype:'text'},
{ name: "userInfoID", index: "userInfoID", width: 75, align: "left",hidden:true,title:false,search:true, sorttype:'text'},
{ name: "userID", index: "userID", width: 75, align: "left",title:false,search:true, sorttype:'text'},
{ name: "firstName", index: "firstName", width: 75, align: "left",title:false,search:false, sorttype:'text'},
{ name: "organizationName", index: "organizationName", width: 75, align: "left",title:false,search:false, sorttype:'text'},
{ name: 'action', index: 'action', width: 70, align: "left",sortable: false, search:false}
],
我正在从服务器获取数据以填充网格并尝试将我自己的数据添加到网格中。我用了
var grid = jQuery("#jqTable");
var data = [{"userGroupID":"2","userInfoID":"2","userID":"userID","firstName":"firstName","organizationName":"organizationName"}];
//jQuery("#jqTableList").addRowData("userGroupID",data);
grid.jqGrid('addRowData','1',data);
//jQuery("#jqTableList").trigger("reloadGrid");
它在说:TypeError: t.p is undefined
u = t.p.rownumbers === true ? 1 : 0;
请帮我..