:: Forum >>

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

Sunday, March 28, 2010
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)
Tuesday, March 30, 2010

This topic is archived.


Back to support forum

Forum search