I assume you have defined your jqgrid object as grid
grid.jqGrid(
beforeSelectRow: function(rowid, e) {
var disabledCheckboxes = $("tr#"+rowid+".jqgrow > td > input.cbox:disabled", grid[0]);
if (disabledCheckboxes.length === 0) {
return true; // allow select the row
} else {
return false; // not allow select the row
}
},
onSelectAll: function(aRowids,status) {
if (status) {
var Checkboxes = $("tr.jqgrow > td > input.cbox:disabled", grid[0]);
Checkboxes.removeAttr("checked");
grid[0].p.selarrrow = grid.find("tr.jqgrow:has(td > input.cbox:checked)")
.map(function() { return this.id; }) // fatch ids
.get(); // convert to instance of Array
}
});