columns:[[
{field:'limitid',title:'Limit ID',width:250,sortable:'true',
formatter:function(value){
for(var i=0; i<limitidlist.length; i++){
if (limitidlist[i].limitid == value) return limitidlist[i].name;
}
return value;
},
editor:{
type:'combobox',
options:{
valueField:'limitid',
textField:'name',
data:limitidlist,
required:true ,
$('#outstanding_currency').combobox('setValue', 'LKR');
}
}
}
},
{field:'outstanding_currency',title:'Outstanding Currency',width:150,
formatter:function(value){
for(var i=0; i<currencylist.length; i++){
if (currencylist[i].currency == value) return currencylist[i].name;
}
return value;
},
editor:{
type:'combobox',
options:{
valueField:'currency',
textField:'name',
data:currencylist,
required:true
}
}
},
实际上这就是我需要的
当有人选择“limitid”时,我想显示选择的“outstanding_currency”,如“LKR”、“AUS”等,给定的解决方案不适用于此