Thanks for quick reply. It works great!
I'm updating all my code to account for this.
-what's the best way to get a count of selected rows now? (I'm creating a counter and iterating the foreach, not sure if there's a better way.)
-what the best way to reference the selected row, if the count is 1. (I'm using the foreaach, even though only 1 record, not sure if there's a better way)
--new code
var selCount = 0;
grid.Selection().eachRow(function (rowData, rowIndx) {
selCount += 1;
})
--old code
var grid = $gridMain.pqGrid('instance');
var selection = grid.SelectRow().getSelection();
if (selection.length > 1) {
showNotify("Only 1 row in the grid can be selected.");
}
else if (selection.length == 1) {
DoAction(selection[0].rowData)
}