I have a grid setup using a QueryReadStore as the datastore.
I implemented a select all feature by utilizing g_grid.selection.shiftSelect(0, rowcount).
where rowcount is set by the model's getRowCount.
This populates the selection array correctly. However when I loop through the selection array and start retrieving rows using g_grid.model.getRows, everything is fine until I get to a rowid for a row that hasn;t been fetched from the db yet. I see a get request fire off in firefox but I am guessing it must be asynchronous and not returning in time for my loop.
Any advice or suggestion for a better way of handling this.
RCB

isRowLoaded?
Would model.isRowLoaded(inRowIndex) help you here, or do you want the data also for those items that haven't been fetched yet?
I saw the isRowLoaded
I saw the isRowLoaded function and that looks to put me on the right track, but I need the data also. I looked at model.requestRows but the call to the datastore is still asynchronous which gets me back to my original problem. Another downside is in the way my loop is set up. It would request each row 1 at a time which would be very inefficient making potentially thousands of calls back to the datastore. I really think I need to go back to the drawing board on this one. Thanks for the help.