setCurrentColumn and setCurrentRow
The following code sets the current column to 10 and row to 3, but it doesn't cause the current cell to be selected as if the user had clicked on it. What do I need to do differently to make the current cell appear as selected?
grid.setCurrentColumn(10);
grid.setCurrentRow(3);
Thanks!
Mark from Cleveland
October 11,
The current and selected cell(s) could be different with multiple selection model and because of this they are managed separately. To select the cell in AW 2.0 you have to set both current row/column and selected rows/columns -
grid.setSelectedColumns([10]);
grid.setSelectedRows([3]);
grid.setCurrentColumn(10);
grid.setCurrentRow(3);
In AW 2.5 there will be new navigation API so you can just call
grid.selectCell(10, 3); // new in AW 2.5
Alex (ActiveWidgets)
October 12,
Wow, thanks Alex. That works.
Mark from Cleveland
October 12,