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
Vurtual/True Scrolling becomes slower on row selection as more rows get loaded in.
04/07/2010
14:56
Avatar
jayarjo
Member
Members
Forum Posts: 17
Member Since:
20/10/2009
sp_UserOfflineSmall Offline

I noticed that interface in general becomes slower (especially in IE) as more rows get preloaded – and more rows it gets the slower it becomes. Especialy noticable it is on row selection, check the demos of virtual/true scrolling, try to load more then 500 rows and click around to select them, notice the delay, then try to load even more rows, try to select again and notice the delay becoming bigger.

At first I thought it had something with my extension of jqGrid, but then I narrowed it down to setSelection() call.

04/07/2010
16:05
Avatar
jayarjo
Member
Members
Forum Posts: 17
Member Since:
20/10/2009
sp_UserOfflineSmall Offline

I think there should be a mechanism to unload previously loaded pages, if the bug that I described depends on the number of rows.

04/07/2010
22:39
Avatar
jayarjo
Member
Members
Forum Posts: 17
Member Since:
20/10/2009
sp_UserOfflineSmall Offline

Interesting, just noticed that true scrolling demo actually always empties the table before preloading new rows. It's exactly the behavior I'm looking for, although I couldn't find what parameters are different from the ones I use in my installation.

From what is written in documentation:

"scroll

boolean or
integer

Creates dynamic scrolling grids. When enabled, the pager elements are disabled and we can use the vertical scrollbar to load data. When set to true the grid will always hold all the items from the start through to the latest point ever visited.
When scroll is set to value (eg 1), the grid will just hold the visible lines. This allow us to load the data at portions whitout to care about the memory leaks. Additionally this we have optional extension to the server protocol: npage (see prmNames array). If you set the npage option in prmNames, then the grid will sometimes request more than one page at a time, if not it will just perform multiple gets."

I can conclude that I should use scroll = 1, right? But that's just what I do. Hm... lost.

04/07/2010
22:45
Avatar
jayarjo
Member
Members
Forum Posts: 17
Member Since:
20/10/2009
sp_UserOfflineSmall Offline

Just out of curiosity set the scroll to 10 instead of 1 and now it works! Probably 1 is interpreted as true and not as value. Awesome!

Great job Tony, I'm constantly finding new things in jqGrid :) Thank you so much!

12/01/2011
13:59
Avatar
otinanism
Member
Members
Forum Posts: 21
Member Since:
27/10/2010
sp_UserOfflineSmall Offline

Hi,

I do not see how this is working. On the demo when you scroll down page by page, the pages are not unloaded. When you scroll up the pages ARE unloaded.

Also on my grid, when I scroll up the pages are unloaded.

But there is need to unload pages on scroll down also, the performance degrates very fast if the pages are not unloaded.

Is there any solution for that?

Thank you in advance.

31/03/2011
11:49
Avatar
otinanism
Member
Members
Forum Posts: 21
Member Since:
27/10/2010
sp_UserOfflineSmall Offline

Together with the other serious bug in jqgrid virtual scroll, this is a major issue. It is beyond me why nobody is replying, just to aknowledge the bug, I am not even asking for a solution right now. Or if you are sure this is not a bug why don't you just say this? Both bugs are visible in your demos!!

31/03/2011
16:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Yes , this is true.

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.

31/10/2011
11:00
Avatar
otinanism
Member
Members
Forum Posts: 21
Member Since:
27/10/2010
sp_UserOfflineSmall Offline

7 months later, still no fix for this bug. And no fix for any other bug concerning virtual scrolling. Can someone please let me know if anyof them will ever be fixed?1

21/06/2012
23:06
Avatar
robsteinde
New Member
Members
Forum Posts: 1
Member Since:
21/06/2012
sp_UserOfflineSmall Offline

Hello

I found the reason for this bug - and by the way 2 solutions:

1. Your API's response can provide the requested page number at the same level as the "total" and "records" nodes. This node has to be named "page" or something else, if you map it in (e.g.) jsonReader.

2. Because we know which page we've requested, it's not logically and nessesary to transmit this via request and response. So you could change this line

ts.p.page = $.jgrid.getAccessor(data,dReader.page) || 0

in "jQuery.jqGrid.min.js", "jQuery.jqGrid.src.js" or "grid.base.js"

to this one

ts.p.page = $.jgrid.getAccessor(data,dReader.page) || ts.p.page || 0

Hope that helps Smile

I submit that to github. We'll see, if it will be merged. Tony? Still alive? Laugh

Best

Robert

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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