Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Filter Bug in 4.4.4
09/05/2013
20:40
Avatar
taddison
Member
Members
Forum Posts: 3
Member Since:
09/05/2013
sp_UserOfflineSmall Offline

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.

10/05/2013
16:30
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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 

13/05/2013
11:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

15/05/2013
18:35
Avatar
taddison
Member
Members
Forum Posts: 3
Member Since:
09/05/2013
sp_UserOfflineSmall Offline

Thank you!

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information