(例如 你选择的时候显示 : 张三(中国),最终显示 张三 上传数据需要是zs)
header:"负责人",
dataIndex:'username',
width:80,
sortable:true,
// hidden:true,
editor:new Ext.form.ComboBox({
store : userStore,
emptyText : "至少输入两个汉字",
mode:"remote",
triggerAction : "all",
displayField : "text",
valueField : "username",
minChars :1,
queryParam : "condition",
pageSize : 10,
listWidth:200,
listeners:{
select:function(cmb,record,index){
grid.getStore().getAt(selectRowIndex).set("useraccount",record.data["value"]);
grid.getStore().getAt(selectRowIndex).set("username",record.data["username"]);
},
focus:function(th){
th.focus(true);
}
}
})
header:"负责人",
dataIndex:'username',
width:80,
sortable:true,
// hidden:true,
editor:new Ext.form.ComboBox({
store : userStore,
emptyText : "至少输入两个汉字",
mode:"remote",
triggerAction : "all",
displayField : "text",
valueField : "username",
minChars :1,
queryParam : "condition",
pageSize : 10,
listWidth:200,
listeners:{
select:function(cmb,record,index){
grid.getStore().getAt(selectRowIndex).set("useraccount",record.data["value"]);
grid.getStore().getAt(selectRowIndex).set("username",record.data["username"]);
},
focus:function(th){
th.focus(true);
}
}
})