I have a gridPanel containing an Store which includes a date column. The grid is sorted in date ascending order by default. I'd like to automatically scroll the grid to the row closest to today's date. I have found that the following both work in the FB console:
but I can't work out what event to listen for in order to fire one of the above. It seems that neither listening for the load event of the store or the render event on the grid work.Code:grid.getView().focusRow(x); Ext.getCmp('theGrid').getView().scroller.dom.scrollTop = y
I must be doing something wrong. Could someone help?