Posted By

arunpjohny on 03/06/09


Tagged

extjs


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Anber


Retaining scroll position after store load


 / Published in: JavaScript
 

To retain the scroll position after a store load in grid

  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  

You need to login to post a comment.