【发布时间】:2011-09-08 13:30:20
【问题描述】:
我不知道为什么,但我使用 jqGrid 和寻呼机无法正确显示。我可以显示viewrecords,但不能显示寻呼机。表的其余部分工作正常。
谁能告诉我问题出在哪里。
我的 JQGrid 是:
jQuery('#report_table').jqGrid({
scroll: 'true',
url:'getReportTableData.json',
datatype: 'json',
height: 400,
width: 800,
colNames:['Futures','Units'],
colModel:[
{name:'Futures',index:'Futures', width: 150, sortable: false},
{name:'Units',index:'Units', width: 150, sortable: false],
rowNum:100,
loadonce:'false',
shrinkToFit: 'true',
mtype: 'POST',
pager: '#preport_table',
postData: { idReport : '75' },
viewrecords: 'true',
loadComplete : function (data) {
if (data.error == 1){
$('#dialog-modal').dialog({
height: 140, width: 300, modal: true, title: ' Error ',
buttons: { cerrar : function() {
$(this).dialog('close');
}
}
});
$('#dialog-modal').html(msgError(data.msg));
}
},
caption: '',
hidegrid: 'true',
});
而html代码是
<table id='report_table'></table> <div id='preport_table' ></div>
谢谢。
【问题讨论】:
标签: javascript jquery browser jqgrid