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 bug
03/07/2009
04:25
Avatar
robyflc
Member
Members
Forum Posts: 5
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

Hello, Tony!

I've found some strange behavior happening when I use the scroll option set to true and I think it can be a bug:

When I do this and try to retrieve the row ID though getGridParam('selrow') I only get the correct IDs relative to the rows that would be in the first page. All the other rows return me the ID relative from its page.

For exemple, if I set rowNum:15 (it could be any number), the first 15 rows, return me their correct ID. The 16th return me ID 1 again, the 17th return ID 2 and so on.

I tried to use some math to work this around but it isnt possible as the page number is permanently set to the highest rolled page.

As I'm currently using 3.4.4, I downloaded 3.5 to see if this would occur and I got the same problem.

Is it really a bug or am I making something wrong??

Thanks for the amazing plugin!!!

Greetings from Brazil!!!

07/07/2009
17:08
Avatar
robyflc
Member
Members
Forum Posts: 5
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

No one has faced a similar problem??

08/07/2009
03:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please check what ids return your server after every scroll.

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.

10/07/2009
17:20
Avatar
robyflc
Member
Members
Forum Posts: 5
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

The ids are reset after each scroll the same way they would be if i was using paging instead of scrolling.

13/07/2009
06:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I think that this is the problem. Instead of the scroll the ids should be uniquie.

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.

16/07/2009
10:46
Avatar
robyflc
Member
Members
Forum Posts: 5
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

That's exactly the problem.

My question is: how can i get the unique ids using scroll instead of paging??

20/07/2009
10:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

If you have FirerBug you can look what id you have in the grid. Also what you have for th ids that will be returned. Please check yor server side code.

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.

23/07/2009
13:19
Avatar
robyflc
Member
Members
Forum Posts: 5
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

I just figured out my mistake. I wasnt using the jsonReader correctly. Everything works fine now.

Sorry for bothering and thank you for your time and help.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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