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
Duplicate page in true scrolling
18/01/2010
18:53
Avatar
retro
Guest
Guests

When I use true scrolling grid, I get duplicated first page. After that, "paging" works correctly. I've added  page = page + 1; somewhere around line 288 in file grid.base.js and that solved it. But it seems that it works correctly on your example page, so I don't know where the bug is.

18/01/2010
21:35
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you please post the grid configuration. Also there was a some fix in GitHub for this, but we should correct another one:

http://www.trirand.com/blog/?p.....38;ret=all

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

18/01/2010
22:13
Avatar
retro
Guest
Guests
18/01/2010
22:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Check your server respons if it is correct for the second and etc pages. I will check with your code.

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

18/01/2010
22:42
Avatar
retro
Guest
Guests

My server code is correct, and I was checking with Firebug. When I scroll out first set, first page is again requested. I will check again, but I don't know what could cause problems on the server side?

19/01/2010
02:10
Avatar
retro
Guest
Guests

I think, I've found the solution. The problem was in using parseInt function instead of Math.ceil when determening current page. So line 277 of grid.base.js file should be page = Math.ceil((tbot + scrollTop) / div) + 1; instead of page = parseInt((tbot + scrollTop) / div) + 1;

It should be tested probably, but it seems that it works on my example.

19/01/2010
02:49
Avatar
markw65
Member
Members
Forum Posts: 179
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

I dont think so...

But I /think/ your server code must be misinterpreting the page numbers. Remember that the first page is page 1, not page 0.

Mark

19/01/2010
04:37
Avatar
retro
Guest
Guests

Well, it fixed the problem for me. Please try it with td padding of 7px and grid's height of 530px. It should be pretty close to my test environment. I double checked my server side code, and it works ok.

edit: Also, I have rownumbers set on true, and they are repeated too, so it is not like server side is returning wrong data, but jqGrid simply repeats first page of results.

22/01/2010
10:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Since this is reported from many users we will definitley check this and let you know.

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

22/01/2010
10:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Since this is reported from many users we will definitley check this and let you know.

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

22/01/2010
10:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Since this is reported from many users we will definitley check this and let you know.

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

22/01/2010
17:37
Avatar
markw65
Member
Members
Forum Posts: 179
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

The problem seems to be that some (perhaps all) browsers are reporting fractional coords for the top of the table, even though top, padding, scrollTop etc are all integers. So the formula sometimes computes 1.9999999 when it should compute 2. Math.ceil is not the solution, because the same rounding errors could produce 2.00001 and Math.ceil would then compute 3. But Math.round should be good enough.

I'd still like to figure out where the fractional pixels are coming from – but for now Im pretty sure that Math.round will solve the problem.

Mark

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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