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_Related Related Topics sp_TopicIcon
scrollrows Option and Dynamic Scrolling
20/12/2010
19:11
Avatar
Frank
Germany
New Member
Members
Forum Posts: 2
Member Since:
20/12/2010
sp_UserOfflineSmall Offline

Combining scroll: 1 and scrollrows: true causes problems:

1. The user scrolls down and skips a few pages. The grid table then holds rows from further down the data set, but not from the beginning. When the user now tries to select one of the visible rows by clicking on it, the grid will jump back to the top of the grid and the selection will fail.

2. Calling setSelection does not work either if the grid has been positioned on an initial page greater than 1.

The following patch in grid.base.js solved the problem for me:

    setSelection : function(selection,onsr) {
            ...
            function scrGrid(iR){
                var ch = $($t.grid.bDiv)[0].clientHeight,
                st = $($t.grid.bDiv)[0].scrollTop,
                rpos = $t.rows[iR].offsetTop + $t.offsetTop,
                rh = $t.rows[iR].clientHeight;
                ...
16/01/2011
21:46
Avatar
nickelj
Member
Members
Forum Posts: 28
Member Since:
15/10/2010
sp_UserOfflineSmall Offline

This also happens to me....without this patch and scroll set to 1 and scrollrows set to true, if you scroll down to the end and then select a row (single click), the row will not be selected and the scroll bar will move up.

The fix shown below also worked for me.

Hopefully this will be included in future versions of jqgrid.

Jim

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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