【发布时间】:2011-05-16 09:29:49
【问题描述】:
我想完成:
- 当ComboBox中的某些项目被选中,隐藏形式或完整的Div中的一些其他字段。
这是我的组合框:
var typeIDcombo = new Ext.form.ComboBox({
fieldLabel: 'Type',
name: 'typeid',
store: typeIdData,
displayField:'name',
valueField: 'typeid',
hiddenName: 'typeid',
typeAhead: false,
mode: 'local',
triggerAction: 'all',
emptyText:'Selecteer het type link',
forceSelection: true,
selectOnFocus:true,
allowBlank: false,
value: 'Selecteer een type',
});
我已将侦听器添加到我的 var form = new Ext.FormPanel。但这不起作用。
listeners: [{
'select' : function(field,nval,oval) {
alert(field);
}],
有人知道解决方案吗?提前致谢。
【问题讨论】:
-
你添加一个
select监听器到Ext.FormPanel,当它应该用于Ext.form.ComboBox时
标签: extjs