I would like to programmatically select a cell in a Qooxdoo table widget and then start the editor for that cell.
So far, I’ve been able to figure out the following: I can select and focus the cell as follows:
var pane = table.getPaneScroller(0);
var selectionModel = table.getSelectionModel();
selectionModel.resetSelection();
selectionModel.addSelectionInterval(row, row);
pane.setFocusedCell(col, row);
However, a subsequent call to table.startEditing()
will not start the cell editor. It works if the cell had manually been selected by the user.
What does the user’s selection of the cell do that my programmatic approximation fails to?
I’ve put together an example demonstrating the problem.