jqgrid分页设置问题
1.jqgrid去掉分页的办法
去掉pager: '#stinfoPage',
rowNum:10,
rowList:[10,20,30],
就OK了,但如果这样的话jqgrid会默认以20的rows传到后台,看下后台传入的请求rows=20&page=1,这时我们后台程序如果对rows值进行计算仍然是分页的查询,那么我们怎样才能查询所有呢?
how to disable rownum property of jqgrid table?
the rownum property of jqgrid by default takes 20. now i have json data of length 50. now after loading it shows View 1 - 20 of 50 once i reach 20 by scrolling down it brings the next 20 records and shows View 1 - 4 of 50 and hence forth. i want to display View 1 - 50 of 50 this i can do by setting rowNum:data.length(). but the data is coming as part of ajax call . hence rowNum property gets set before data is actually fetched. setting the rowNum after grid is loaded does not serve the purpose. As i have fetched all the data at one shot i don't want this repeated ajax call. hence i want to disable the rowNum property. plz help...
回答:
The options page on the jqGrid wiki says:
Set this parameter to -1 (unlimited) to disable this checking.
It is, however, struck out so may no longer be correct (or may have never been correct). Seems like it's worth a try, though.
浙公网安备 33010602011771号