Forum
20:40
09/05/2013
I created a grid to show all rows (rowNum:- 1) and filter via the header on local data (loadOnce: true). I noticed the correct number of results were not showing up. On line 1653 of query.jqGrid.js there is the following line:
queryResults = queryResults.slice( (page-1)*recordsperpage , page*recordsperpage )
Let's assume before this line, queryResults had 2 records. And, because we're displaying all records on one page, page is 1. When rowNum is -1, then recordsperpage is -1. Therefore, we have: queryResults.slice(0,-1). This results in error, not the 2 records.
16:30
10/08/2009
The bug is the usage of rowNum: -1. The documentation contains explicitly crossed out text about the usage of rowNum: -1. If you need display local data (inclusive the usage of loadonce: true) you have to use positive integer value for rowNum option. For example you can use rowNum: 1000 or rowNum: 10000.
Regards
Oleg
11:37
Moderators
30/10/2007
Hello,
You can use rowTotal parameter for this purpose. In the doc is explained the diffreneve between rowTotal and rowNum.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
38 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66