Forum
Topic RSS
10:30
23/12/2010
OfflineHi.
I have the following situation: I'm on the single element on my last page and have some filter settings. After changing this element it is not hit by the filter again and on the last page are no more elements.
After the element is changed the loadComplete-Event is fired. In the loadComplete-function I check if the page stored in my cookie is greater than total pages. In this case i want to load the second last/new last page with setGridParam({page:total}) and trigger('reloadGrid') (the value stored in total is the correct one).
But my setGridParam and trigger is totally ignored. If I set a window.timeout, it seems to work, but this couldn't be the solution.
I would be very grateful if you could help me
14:58
Moderators
30/10/2007
OfflineHello,
I'm not sure that triggering the grid in loadComplete is a good solution at all.
It could happen so thet you will have not ending cycle of triggering and load complete.
I think setTimeout function can be implemented in loadComplete event, but you will need to be sure that the non ending cycle will not occur.
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.
Most Users Ever Online: 994
Currently Online:
15 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
Log In
Home