2011-01-06 16 views
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); 
    } 
}); 

を。

しかし、私が提案の項目を選択しようとすると、それは選択されません!

私はここで間違っていますか?

答えて

0

これらの特性の組み合わせを試してみてください、あなたは先行入力を取得し、それはselecitonができます:

editable : true, 
typeAhead : true, 
forceSelection : true, 
disableKeyFilter : true, 
triggerAction : 'all', 
mode : 'local' 
+0

ねえ、おかげで、そのために - 私はこの後の今日をチェックして、返されます:) – iwayneo

関連する問題