Retaining scroll position after store load


/ Published in: JavaScript
Save to your folder(s)

To retain the scroll position after a store load in grid


Copy this code and paste it in your HTML
  1. view config:
  2. onLoad: Ext.emptyFn,
  3. listeners: {
  4. beforerefresh: function(v) {
  5. v.scrollTop = v.scroller.dom.scrollTop;
  6. },
  7. refresh: function(v) {
  8. v.scroller.dom.scrollTop = v.scrollTop;
  9. },
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.