sj137
6 Jun 2007, 6:21 AM
Hi,
My problem is that the eventlistener function i call, does what it's supposed to and then does something else...
when a new row is added to the top of the Editor Grid, I add a listener like this to the code:
grid.on('afteredit', nxCell);
where:
function nxCell(e){
grid.startEditing(0, 2);
}
the current cell is always row 0, column 1, so the editor moves to the correct cell when 'afteredit' fires (0,2)
...but then with pause it immediately goes to the cell beneath the initial editing cell (ie row 1, column 1)
what am i doing wrong or how can i get the behaviour I'm after?
Many thanks in advance
SJ
PS I've been search the doc and api, trying out and testing things too, but to no avail, i the think the best option would be to listen for key events instead...? on keypress or on keydown...
My problem is that the eventlistener function i call, does what it's supposed to and then does something else...
when a new row is added to the top of the Editor Grid, I add a listener like this to the code:
grid.on('afteredit', nxCell);
where:
function nxCell(e){
grid.startEditing(0, 2);
}
the current cell is always row 0, column 1, so the editor moves to the correct cell when 'afteredit' fires (0,2)
...but then with pause it immediately goes to the cell beneath the initial editing cell (ie row 1, column 1)
what am i doing wrong or how can i get the behaviour I'm after?
Many thanks in advance
SJ
PS I've been search the doc and api, trying out and testing things too, but to no avail, i the think the best option would be to listen for key events instead...? on keypress or on keydown...