我的jqGrid显示正确但只显示一页结果。我将rowNum设置为什么,即使它紧挨着它所显示的所有结果,它表示它显示了181个结果中的10个。是否有一些参数我必须调整以使寻呼机允许我实际页面?
谢谢, 凯尔
jQuery("#corporateavgmap").jqGrid({
url:'monthly_corp_rates.jsp?'+dataString,
datatype: "json",
mtype:'POST',
colNames:['','USD', 'GBP', 'EUR','CAD','THB','HKD', 'MYR', 'JPY','AUD','IDR','KRW' ],
colModel:[
{name:'',index:'fromCurr', width:55, jsonmap:"fromCurr" },
{name:'USD', width:90, jsonmap:"toUSD"},
{name:'GBP', width:100, jsonmap:"toGBP"},
{name:'EUR', width:80, align:"right", jsonmap:"toEUR"},
{name:'CAD', width:80, align:"right", jsonmap:"toCAD"},
{name:'THB', width:80, align:"right", jsonmap:"toTHB"},
{name:'HKD', width:80, align:"right", jsonmap:"toHKD"},
{name:'MYR', width:80, align:"right", jsonmap:"toMYR"},
{name:'JPY', width:80, align:"right", jsonmap:"toJPY"},
{name:'AUD', width:80, align:"right", jsonmap:"toAUD"},
{name:'IDR', width:80, align:"right", jsonmap:"toIDR"},
{name:'KRW', width:80, align:"right", jsonmap:"toKRW"}
],
rowNum:10,
rowList:[10,20,30],
pager: '#pjmap2avg',
sortname: 'tradeDT',
viewrecords: true,
sortorder: "desc",
jsonReader: {
root : "corporateavgrate",
repeatitems : false,
id: "fromCurr"
},
caption: "Average Corporate Rates For: "+month+"-"+year,
height: '100%',
reloadAfterEdit: true,
reloadAfterSubmit: true,
reloadonce: false,
autowidth:true,
viewrecords: true,
gridview: true
});
alert("hello");
jQuery("#corporateavgmap").jqGrid('navGrid','#pjmap2avg',{edit:false,add:false,del:false,refresh:true}).
jqGrid('navButtonAdd',"#pjmap2avg",{caption:"Export to Excel",buttonicon:"", onClickButton: corpAVGMonthlyRatesTableToExcel , position:"last",title:"",cursor:"pointer"});