I have a grid panel used for searching items. It starts out empty but it's configured store loads whenever a user triggers a nearby searchfield.
I'm using grid.getSelectionModel().select(0)
to select the first row when it loads. But this doesn't enable key navigation with the arrow keys afterwards. If I perform a mousedown on a row then the arrow key navigation will work.
I would like to just automatically select the first record and have the arrow key navigation enabled.
I've tried focusing on the grid, the gridview and also the first row with grid.view.focusRow(0)
and I've tried all of these before and after calling select(0)
. None of these give me key navigation. Any ideas?
This is using 4.1b2