I'm trying to pre-select a particular cell in a grid once that grid has finished loading. The actual selection is easy - grid.getSelectionModel.select(rowIndex, colIndex). If I do that once my app is running - say on clicking a toolbar button - it works perfectly.
But then I tried doing it in the load handler for the grid's store, it appears to work, and I can even test that it's worked by calling sm.hasSelection(). But the cell is not selected (or, and thinking about it this is probably relevant - it's not *visibly* selected)
What also works is defering the execution of the call to sm.select(r,c) until a few milliseconds after the store has loaded, ie
Problem with that is I'm 99% sure that the required delay will increase as my data set gets larger.
So, what I'm looking for is an event I can subscribe to which fires only when a grid is 100% ready to respond to a grid.sm.select() call. Store load definitely isn't it, and the grid's 'render' event doesn't seem to be either. Any suggestions? Meanwhile I'm going to look into the possibility that the cell *is* being selected, just not indicated as such visually.
PS: this is an Air application, which might be the problem, although I don't think so. This also means that I can't Firebug it of course.