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.
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步