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
Problem with Subgrid and Scroll
10/05/2011
11:54
Avatar
crilla86
Member
Members
Forum Posts: 8
Member Since:
10/05/2011
sp_UserOfflineSmall Offline

Hi, i have a problem using the subgrid and the scroll and i will try to explain.

At beginning i load only 30 rows and when i scroll it makes a new request to the db and load other 30 rows (from 31 to 60).

Before it makes a new request, the subgrid works correctly, but after a i use the scroll i have this problem:

when i try to expand one of the first 30 rows (for example the row 20) it expand the subgrid and collapse!

Using the debugger, i have seen that jquery see two clicks, like as i click on two differents list , infact the guid associated at the events are, for example, 70 and 100.

I think that when i use the scroll and receive other 30 rows by the db, jquery see a new list.

Also, if i continue to scroll and it makes a new request to the db and receive other 30 rows (fro 61 to 90), i see that when i click on the row 20 it exanpe the subgrid, collapse and re-expand.

How can i fix this problem?

I hope that i'm clear.

I'm using only the option scroll and subgrid set to true, and the version of jqgri is 4.0.

11/05/2011
00:41
Avatar
tpersson
New Member
Members
Forum Posts: 2
Member Since:
10/03/2011
sp_UserOfflineSmall Offline

I am having the same problem.

22/05/2011
15:12
Avatar
tpersson
New Member
Members
Forum Posts: 2
Member Since:
10/03/2011
sp_UserOfflineSmall Offline

A quick patch is to change the line 185 in grid.subgrid.js

From:

$(this.cells[pos]).bind('click', function(e) {

To:

$(this.cells[pos]).unbind('click');
$(this.cells[pos]).bind('click', function(e) {

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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