PDA

View Full Version : what happened to getScrollState and restoreScroll



rballman
13 Sep 2008, 10:46 PM
I am trying to maintain a grid's scroll state or "position" when I refresh the grid every few seconds automatically. I search the forum and found some solutions:

grid.getView().getScrollState(); and grid.getView().restoreScroll(state);

The only problem is it seems like these functions dont exist anymore! :D

Any solutions?

evant
13 Sep 2008, 11:59 PM
They are still there, they're marked private, the same as they were in 1.1.

alindsay55661
11 Oct 2008, 6:36 PM
Solution is here:

http://extjs.com/learn/Ext_FAQ_Grid#Maintain_GridPanel_scroll_position_across_Store_reloads