I was able to fix this issue by simply adding the below code near refresh and save methods.
Do this before you 'refresh or save' a record:
var scrollPos = grid.getEl().down('.x-grid-view').getScroll();
//And then after the record is saved or refreshed add this line
grid.getEl().down('.x-grid-view').scrollTo('top', scrollPos.top, false);
No comments:
Post a Comment