hmmm
this is what I have as part of my grids viewConfig :
Code:
var messageList = new Ext.GridPanel({
.....
snip
...
viewConfig: {
cRow: 0,
saveRow: 0,
listeners: {
beforerefresh: function(gridview) {
this.saveRow = this.cRow;
},
refresh: function(gridview) {
this.saveRow = this.saveRow + 11;
alert('scroll to ' + this.saveRow);
messageList.getView().scroller.dom.scrollTop = this.saveRow;
}
}
},
listeners: {
bodyscroll: function(sl, st) {
this.getView().cRow = st;
}
},
alert comes up with 'scroll to 355' , nothing has yet refreshed ... I click the alert then the
screen refreshes at the top :-( Please note that the alert appears BEFORE the grid is refreshed!! Docs seem to imply
'refesh' is fired AFTER grid is refreshed.
I'm obviously doing this in the incorrect place ...