【发布时间】:2013-09-26 13:34:00
【问题描述】:
我有两个Extjs Comboboxes
var cb1 = new Ext.form.ComboBox({
fieldLabel: 'Combobox1',
width: 100,
listeners:{
scope: this,
'select': this.reset
}
});
var cb2 = new Ext.form.ComboBox({
fieldLabel: 'Combobox2',
width: 100,
baseParams: { loadInitial: true, cb1Val: this.cb1.getValue() } // Here I want to get selected value of cb1
listeners:{
scope: this,
'select': this.reset
}
});
我正在使用this.cb1.getValue() 来获取cb1 的选定值,但我在这里得到的是空白值。
谁能告诉我我在这里做错了什么。
【问题讨论】:
标签: visual-studio-2010 extjs combobox