willydee
26 Jun 2007, 12:28 PM
Today I implemented a grid sorting scheme with keyboard navigation. I'm leaving the details out because this would be rather complex to describe -- feel free to ask for a code example if needed. The problem I discovered is that sometimes the keyboard events no longer reach my handler after a row is selected by program logic. After taking a deep look into GridView's code I was able to work around this by adding a subsequent focusRow() call:
grid.getSelectionModel().selectRow(index);
grid.getView().focusRow(index);
In my opinion this call should be directly included into the Ext.grid.GridView.selectRow() method.
grid.getSelectionModel().selectRow(index);
grid.getView().focusRow(index);
In my opinion this call should be directly included into the Ext.grid.GridView.selectRow() method.