What about the following code?
that's essentially what I'm doing on line 3, except I'm only interested in the currently selected row. I'm still trying to find out if there is a better way to get the record for that row, rather than using the jQuery on line 4.
A better way would be replace lines 3,4,5 with
var record = grid.getSelectedRecords();
getSelectedRecords is a method of the IG grid view that calls the grid widget getSelectedRecords method.