|
楼主 |
发表于 2017-6-30 11:28:30
|
显示全部楼层
各种方法都试了,不行
Model.prototype.grid3CellRender = function(event){
if(event.colName=="RADIO"){
var fid = event.rowId;
event.html = "<input type='radio' value='是' name='"+fid+"' 'justep.Bind.contextFor(this).$model.saveRadio('是',\"" + event.row.row.IF_DOWN.value.latestValue + "\")' onclick='justep.Bind.contextFor(this).$model.saveRadio('是',\"" + fid + "\")'>是</input> "
+"<input type='radio' value='否' name='"+fid+"' "+this.ifChecked("否",event.value)+" onclick=\"saveRadio('"+fid+"',0)\">否</input>";
}
};
Model.prototype.ifChecked = function(value,colValue){
if(value==colValue){
return "checked";
}else{
return "";
}
};
function saveRadio(rowID,value){
alert(11);
justep.xbl("bizData1").setValue("fOwnerID", value, rowID);
}
Model.prototype.saveRadio = function(value,rowID){
alert(11);
this.comp("detailData").setValue("IF_DOWN", value, rowID);
}; |
|