PDA

View Full Version : Grid RowSelect After Refresh



DaleFraser
11 Oct 2007, 4:46 PM
I have this code.

ColdFusion.Grid.refresh('taskGrid');
ColdFusion.Grid.getGridObject('taskGrid').getSelectionModel().selectRow(0);

Now the selection works as I can tell by other actions that occur, but you don't visibally see the row selected.

If I use the selectRow on a grid that hasn't just been refreshed it works fine.

My theory is that the refresh which is on a paged grid isn't complete before the select is occuring. Can I somehow add a listener to the refreshComplete to then select my required row.