如果name相同,radio就只有最后一行能默认选中,把name去掉,radio就可以被默认选中,但是不能实现单选
<th data-options="field:'orgtype',width:80,formatter:formatProgress">类型</th>
function formatProgress(value,row){
if(value=='1'){
var s = '<input type="radio" value="1" checked="true">分行'+
'<input type="radio" value="2">支行'+
'<input type="radio" value="3">网点';
}
else if(value=='2'){
var s = '<input type="radio" value="1" >分行'+
'<input type="radio" value="2" checked="true">支行'+
'<input type="radio" value="3">网点';
}
else if(value=='3'){
var s = '<input type="radio" value="1" >分行'+
'<input type="radio" value="2" >支行'+
'<input type="radio" value="3" checked="true">网点';
}
else{
var s = '<input type="radio" value="1" >分行'+
'<input type="radio" value="2" >支行'+
'<input type="radio" value="3" >网点';
}
return s;
}