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
Page number still incremented when returning stop in onPaging
27/09/2010
22:20
Avatar
xmarcus
Member
Members
Forum Posts: 12
Member Since:
27/09/2010
sp_UserOfflineSmall Offline

If you return 'stop' in the onPaging callback function the grid page number is still changed.  I'd think it should remain unchanged.

28/09/2010
01:36
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony!

I could confirm the bug. We discussed it with Marcus in http://stackoverflow.com/quest.....72#3806072. The problem exist in some places in jqgrid.base.js where clearVals are used. Because onPaging called inside of clearVals can stop paging some things run incorrect now. For example if one onPaging return 'stop' why should be selection removed? (see inside of clearVals) Or look at 1740 and 1741:

ts.p.page = ($(this).val()>0) ? $(this).val():ts.p.page;

if(!clearVals('user')) { return false; }

Ot 'stop' the pager will be changed, what is incorrect. The same problem exist in the lines 1692-1696 in the 'change' handle which for the select box of rowNum. One should verify all places of the usage of clearVals.

It seems to me that one should call onPaging at the begining and then if it not stop paging then do the rest.

Best regards
Oleg

18/09/2012
18:32
Avatar
talonsblade
Member
Members
Forum Posts: 3
Member Since:
18/05/2011
sp_UserOfflineSmall Offline

I am still having this problem with my pages.  i stop paging to ask user if he wants to save changes with a jqgrid dialog.  when i try to increment the page by myself after they make a choice, the Page parameter has already been incremented.  if they cancel the paging event to look over changes and then click the next page again it now skips over a whole pages.

27/09/2012
13:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I have fixed the problem in github. Could you please try and let me know if it is ok now.

Thank you

Kind Regards

Tony

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
43 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