Forum
19:11
20/12/2010
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:
...
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;
...
21:46
15/10/2010
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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66