1
没有使用Extjs一段时间,我已经有点生锈了!Extjs Combobox无法选择项目
我有以下组合框:
代码:
NameSpace.DirectCombo = Ext.extend(Ext.form.ComboBox, {
displayField: 'Name',
valueField: 'Id',
triggerAction: 'all',
queryAction: 'Name',
forceSelection: true,
mode: 'remote',
initComponent: function() {
this.store = new Ext.data.DirectStore(Ext.apply({
api: this.api,
root: 'data',
fields: this.fields || ['Name', 'Id']
}, this.storeConfig));
NameSpace.DirectCombo.superclass.initComponent.call(this);
}
});
NameSpace.LocationCombo = Ext.extend(NameSpace.DirectCombo, {
storeConfig: {
id: 'location-combo-store'
},
initComponent: function() {
Ext.apply(this.storeConfig, {
directFn: Location.AllHasLineupList,
baseParams: { Id: selectedNodeId }
});
NameSpace.LocationCombo.superclass.initComponent.call(this);
}
});
加载并做整个预输入事情的罚款。
但是,当我尝试在建议中选择一个项目,它不会选择它!
我在这里做错了什么?
嘿,感谢 - 我会检查这个在今天晚些时候和回来:) – iwayneo 2011-01-15 11:07:57