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
This topic is locked No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
Grid scrolls to top after selecting a cell
28/09/2012
11:12
Avatar
nvrs
Member
Members
Forum Posts: 3
Member Since:
20/04/2011
sp_UserOfflineSmall Offline

With the latest version of jqgrid (4.4.1) this happens to me with both FF 15.0.1 and Chrome 22. I guess i ll have to resort to inline editing.

28/09/2012
11:41
Avatar
nvrs
Member
Members
Forum Posts: 3
Member Since:
20/04/2011
sp_UserOfflineSmall Offline

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.

22/10/2012
16:12
Avatar
Wolf
Chennai, India
New Member
Members
Forum Posts: 1
Member Since:
22/10/2012
sp_UserOfflineSmall Offline

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".

23/10/2012
10:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

20/11/2012
21:27
Avatar
sergey68
Member
Members
Forum Posts: 3
Member Since:
31/01/2012
sp_UserOfflineSmall Offline

This does not work quite right. I also had to set top:0 in addition to position:fixed

Thanks.

29/01/2013
23:34
Avatar
morris
New Member
Members
Forum Posts: 1
Member Since:
30/01/2013
sp_UserOfflineSmall Offline

pkane's solution worked great for me in 4.3.1 with IE, FF, Chrome of last year


Now on 4.4.3, IE9 and FF 18.01 have issues. I tried sergey68's fix. Chrome 24 and FF seem ok, but IE9 still is wonky. 

26/02/2013
05:45
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

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

04/07/2013
05:24
Avatar
Roy
New Member
Members
Forum Posts: 1
Member Since:
04/07/2013
sp_UserOfflineSmall Offline

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)

This topic is locked No permission to create posts
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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