0
我很困惑,請幫我擺脫這個問題。 我有兩個字段1.顯示2.值:組合框在Extjs中沒有發送正確的值
new Ext.form.ComboBox({
width: 200,
height:'50',
id:'Keyword',
triggerAction: 'all',
mode: 'local',
store: natureStore ,
hiddenName:'value',
valueField: 'value',
anyMatch: true,
displayField: 'display',
emptyText:window.parent.localisedConstants.menusearch,
listeners: {
'render': function(c) {
c.el.on('keypress', filterTree, c, {buffer: 350});
}
}
})
c.target.value總是返回顯示領域,而不是價值領域。
你能提供一個小例子來重現問題嗎? (沒有ext庫),尤其是商店以及價值是如何提取的 – Tarnschaf 2010-12-07 00:57:28