PDA

View Full Version : EditorGrid: custom next cell after cell editing



6epcepk
6 Nov 2009, 1:00 AM
Hi, is it possibly to set custom (not next) cell after current cell is has been editing (after press ENTER)?

Im trying like this, but always hightlighting next row..


windowGrid.addListener('afteredit', function(e) {
Ext.Ajax.request({
success: function(response, options) {
var lastRow = windowGrid.getStore().getCount();
windowGrid.startEditing.defer(50, windowGrid, [lastRow, 5]);
//windowGrid.getView().focusCell(lastRow, 5, false);
});
});

fay
6 Nov 2009, 3:51 AM
Should be:


var lastRow = windowGrid.getStore().getCount() - 1;

6epcepk
6 Nov 2009, 4:01 AM
Oops, now work perfect! Thanks!