3.2.0

Set Focus to row/cell

In our cell validation event we do the following

hold_indices = grid.getRowIndices();
hold_row_count = grid.getRowCount();
hold_current_row = grid.getCurrentRow();
//

itterate columns etc.

//
grid.setRowIndices(hold_indices);
grid.setRowCount(hold_row_count);
grid.setCurrentRow(hold_current_row);
grid.setCurrentCol(1);
grid.focus();

PROBLEM: Grid Cell is no longer in focus so keyboard input is ignored UNLESS one mouse clicks the cell.

Please advise how to set focus to cell ready for keyboard input ?

Thanks

March 28,
There is no setCurrentCol() method - should be setCurrentColumn().

Try grid.selectCell(col, row) instead of setCurrentColumn/setCurrentRow. Also if you change rowIndices/rowCount you may need to call selectCell after some delay (so that the grid can render rows first).
Alex (ActiveWidgets)
March 30,

This topic is archived.

See also:


Back to support forum