If I understand you correct you can just use custom formatter. If all the buttons which you included has the same name
attribute you will have the behavior which you need
formatter: function (cellValue, option) {
return '<input type="radio" name="radio_' + option.gid + '" />';
}
After creating the column with radio buttons you will receive many other questions how to synchronize other functionality of jqGrid with the radio buttons. In the following example I show you how you can check the radio button on selecting the row:
beforeSelectRow: function (rowid, e) {
var radio = $(e.target).closest('tr').find('input[type="radio"]');
radio.attr('checked', 'checked');
return true; // allow row selection
}
See the demo here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…