Reputation: 2469
Working with SlickGrid (v2.2). I am setting
enableAddRow: false,
autoEdit: true
I also have an editors for my columns. Tabbing through the editors works fine and it navigates to subsequent cells without issues. However, when in the last row, last cell.. tabbing out of the editor does not reset the cell. It does commit the changes however. The behavior I am looking for is, when there are no more cells to navigate to, it simply commits the changes and resets itself.
Anybody have any pointers?
Upvotes: 0
Views: 826
Reputation: 3381
You could try something like
grid.onCellChange.subscribe(function (e, args) {
if (args.cell >= grid.getColumns().length - 1 &&
args.row >= grid.getDataLength() - 1) {
grid.getEditorLock().commitCurrentEdit();
}
});
Update: see this question for a more robust fix for this tabbing issue.
Upvotes: 1