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
scroll generates too many server calls
10/05/2011
22:04
Avatar
Ken C. Len
New York
New Member
Members
Forum Posts: 2
Member Since:
10/05/2011
sp_UserOfflineSmall Offline

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)?

11/05/2011
17:47
Avatar
Ken C. Len
New York
New Member
Members
Forum Posts: 2
Member Since:
10/05/2011
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information