I have a problem in using the code from http://www.extjs.com/forum/showthread.php?t=47119

Everything works perfectly in IE, but I get an error in FF saying record is undefined.

Code:
// Once the grid has loaded the data we need to select the first row of the workflow list
	grid.getView().on({

        viewready: {

            fn: function(){

                grid.getSelectionModel().selectFirstRow();
				
				var selectionModel = grid.getSelectionModel();
				var record = selectionModel.getSelected();
				
				// Load the Workflow Steps based on the workflowId that is passed
				storeSteps.load({params:{workflowid:record.data['workflowid']}});

            }

        }

    });
Is this because FF has not finished loading everything even though it calls the viewready function?

I am using 2.2 codebase btw.