代码如下,绑定数据没有问题,下拉列表也可以显示,但是编辑该单元格时,因绑定的字段名与下拉列表字段名不一致,无法显示新选中内容,急求高人指点
<th data-options="field:'userName',width:80,formatter:function(value,row,index){
if (row.recipient){
return row.recipient.userName;
} else {
return row.userName
}
}, editor:{
type:'combobox',
options:{
valueField:'userName',
textField:'userName',
url:'../MstInquiry/show_recipientlist.do',
required:true
}
}">Name</th>
<th data-options="field:'userName',width:80,formatter:function(value,row,index){
if(value==null||value==''){
if (row.recipient){
return row.recipient.userName;
} else {
return value;
}
}else{
return row.userName;
}}, editor:{
type:'combobox',
options:{
valueField:'userName',
textField:'userName',
url:'../MstInquiry/show_recipientlist.do',
required:true
}
}">Name</th>