Forum


22:04

10/05/2011

Problem with scrolling is when scroll is set to either 1 or true, every scroll event is executing ajax call even when the scroll bar is dragged all the way to the end. This generates alot of traffic back to the server.
Is there any way to make the ajax call [populateVisible()] when the scroll stops (once only)?
17:47

10/05/2011

I've try this solution and it works when scroll: 1 or scroll: true
In line 103 of jquery.jqGrid.min.js, on scroll stop call populateVisible()
changed:
.scroll(e.scrollGrid)
replace with:
.bind('scrollstart',function(){}).bind('scrollstop',function(e){a.grid.populateVisible();}) .bind('scrollstart',function(){}).bind('scrollstop',function(e){a.grid.populateVisible();})
include scroll start and stop jQuery plug-in from http://james.padolsey.com/java.....or-jquery/
As for scroll: true, on scroll stop all page callbacks are executed at the same time.
Hope this feature gets included in future releases.
Most Users Ever Online: 715
Currently Online:
55 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