I have a CFGrid with pagination, and have a separate form to add new row to last row of the grid.
//Ajax form submit
ColdFusion.Ajax.submitForm('form1', 'data.cfc?method=insertRow', formUpdateHandler, formErrorHandler);
//Handler function post update
function formUpdateHandler() {
ColdFusion.Grid.refresh('grid', true);
ColdFusion.Grid.getGridObject('grid').getSelectionModel().selectLastRow();
}
The selectLastRow() method doesn't seem to do anything, and it does not throw a script error either? Do I actually have to something else to get focus?
Thanks in advance!