Forum
11:41
20/04/2011
If it is of any help, this didn't happen with 4.4.0. Of course, in 4.4.0 you couldn't navigate the grid with the arrow keys but still, with the scroll to top behaviour when celledit starts or finishes, the feature is practically unusable for my use case (save button and other vital info is below the grid and grids are often longer than 25 lines.
16:12
22/10/2012
mercurio said:pkane's solution is working for me, too. Is there any chance this will make it into a future release? Alternatively, putting that outer span's style into the CSS would allow those of us who need this fix to implement it in CSS rather than patching the source.
pkane's solution works for me too!
I am using jqGrid 4.4.1.
Here's what I had to do to fix this issue:
In jquery.jqgrid.min.js search for "<div style='position:absolute;top:-1000000px;width:1px;height:1px;'" and change the style attribute "position:absolute" to "position:fixed".
10:03
Moderators
30/10/2007
Hello,
Thanks all and sorry for the late fix.
Fixed in GitHub
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.
05:45
11/03/2010
In jquery.jqGrid-4.4.3, (the last version to support ie6), with latest chorme, the problem is still there.
If you can't reproduce the problem, it's because your jqgrid is not BIG enough, or your computer screen is TOO BIG enough. if you has many rows exceeding your computer screen, and use vertical scrolling of browser to view the last row of jqgrid, and click any of the cells, you will see the browser vertical scrolls(not means the jqgrid vertical scroll) to the top to show the head of the page.
In jquery.jqgrid.min.js search for "<div style='position:absolute;top:-1000000px;width:1px;height:1px;'" and change the style attribute "position:absolute" to "position:fixed".
In fact, in jquery.jqGrid-4.4.3, this is modified, and works fine with IE6,7,8, BUT STILL HAS Problem with IE9 and Chorme 23.0.1271.95.
So this is two problem in fact. The 1st problem is the jqgrid's self scorll problem, which is solved as mentioned above. The 2nd problem is about the BROWSER's scroll, when the page height is high, and jqgrid is at the bottom of the page, and when you click the cell, the page's browsser sroll bar will scroll to the page top head.
The 2nd problem could be hacked by remove c.p.knv||b(c).jqGrid("GridNav");
So he 2nd problem is still there.
yours,
Ivan
05:24
04/07/2013
Hello,
Above solutions don't work for me.
The problem is occured only at the HTML5 Document.
So, I created a hack. (If editCell function have event parameter then the solution will be clearer than below hack.)
Paste below code at two position in the grid.celledit.js.
code:
if (window.event) {
$("#"+$.jgrid.jqID($t.p.knv)).offset({top:$('body').scrollTop(), left:window.event.pageX});
} else {
$("#"+$.jgrid.jqID($t.p.knv)).offset({top:$('body').scrollTop()});
}
grid.celledit.js position:
- Line 40 : above of $t.p.selrow = $t.rows[iRow].id;
- Line 411 : above of $("#"+$t.p.knv)
Most Users Ever Online: 715
Currently Online:
75 Guest(s)
Currently Browsing this Page:
2 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