我有一个从服务器获取数据的网格。我不需要在这个网格上分页,我希望一次加载所有记录。我尝试过使用loadonce
属性,但它不起作用。我怎样才能做到这一点?
这是我的网格
jQuery("#rowed4").jqGrid({
url:'server.php?q=2',
datatype: "json",
colNames: ['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel: [
{name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90, editable:true},
{name:'name',index:'name', width:100,editable:true},
{name:'amount',index:'amount', width:80, align:"right",editable:true},
{name:'tax',index:'tax', width:80, align:"right",editable:true},
{name:'total',index:'total', width:80,align:"right",editable:true},
{name:'note',index:'note', width:150, sortable:false,editable:true}
],
rowNum: 10,
rowList: [10, 20, 30],
pager: '#prowed4',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
editurl: "server.php",
caption: "Full control"
});