Home › Forums › Guriddo jqGrid JS › Help › keep vertical scrolling
How to keep vertical scrolling after reload data?
temporal solution: comment a line if(!ts.p.treeGrid&&!ts.p.scroll){/*ts.grid.bDiv.scrollTop=0;*/ in source code
I believe you can pretty much use the same logic, save the scrollTop before grid reload
var savedScrollTop = ts.grid.bDiv.scrollTop
and then restore it in the “gridComplete” event, instead of reseting to 0 (as is the original source). Will this work?
Rumen Stankov
Trirand
And how to get access to the property through ts.grid.bDiv.scrollTop jQuery(“# list”). ? I do not know much jQuery
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS