PDA

View Full Version : one more grid question please



danellison
12 Feb 2010, 8:04 AM
Thanks in advance for any help.

I have an editor grid panel. I want to automatically add a new record to the data store whenever you tab off the last cell in the grid. What event should I be listening for to catch this?

As always, help much appreciated.
Dan

Eugen_
12 Feb 2010, 8:30 AM
Hi Dan,

try this



keydown: function(e) {
if (e.getKey() == e.TAB) {

}
},
and the getSelectedCell() method of the Ext.grid.CellSelectionModel