papasi
7 Mar 2007, 11:29 PM
I'm looking at the edit-grid example and see that it calls startEditing after adding a row.
Currently, the code always add a row at the top of the table.
However, this is not ideal if you want to keep the table sorted.
So if I insert the new row before the 10th row and call startEditing(10,0), I see that the table will get shifted. Calling grid.view.focusCell(10,0) has the same effect.
This might be related to the fact that there's a toolbar at the top.
You can see an example here (click on 'focus 10th row')
http://www.talrasha.com/ext1a2/examples/grid/edit-grid.html
I can reproduce this using FF1.5
Thanks.
Currently, the code always add a row at the top of the table.
However, this is not ideal if you want to keep the table sorted.
So if I insert the new row before the 10th row and call startEditing(10,0), I see that the table will get shifted. Calling grid.view.focusCell(10,0) has the same effect.
This might be related to the fact that there's a toolbar at the top.
You can see an example here (click on 'focus 10th row')
http://www.talrasha.com/ext1a2/examples/grid/edit-grid.html
I can reproduce this using FF1.5
Thanks.