Maintain vertical Scroll bar

QuestionsMaintain vertical Scroll bar
Hussein Alaedin asked 7 years ago

Can the phpgrid vertical scroll bar maintain its position when the grid
autorefreshed by setTimeout("jQuery('#list1').trigger('reloadGrid',[{page:1}]);",1000);?

Thanks in advanced.

4 Answers
Abu Ghufran answered 7 years ago


This is doable but need to override loadcomplete event.
working sample is here.

function do_onload()
if (jQuery(window).data('phpgrid_scroll'))

setTimeout("jQuery(window).data('phpgrid_scroll',jQuery('div.ui-jqgrid-bdiv').scrollTop()); jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}])",3000);

Abu Ghufran answered 7 years ago

btw, the event controlling is currently part of licensed version (unless you find some hack in free build)

Chris Henderson answered 6 years ago


This works great, but, if you have selected (ticked) some of the rows they get de-selected every time the timeout occurs…

Any ideas?


Abu Ghufran answered 6 years ago

I've updated the demo on website and emailed you updated grid sample code.

Your Answer

9 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!