2011-10-05 63 views
0

我有一個GridPanelExtJS 4.02包含組合框列。我正在使用RowEditor。網格呈現很好,但是當我點擊任何一行時,組合變爲空白。用戶不得不記住以前的值,即使他們沒有改變組合。很煩人。如何阻止ExtJS清除網格中的組合框?

這裏是我的專欄:

{ 
     dataIndex: 'partnumber', 
     editor:  self.cmbParts, 
     field: { 
      allowBlank:  false, 
      autoRender:  false, 
      autoSelect:  false, 
      autoShow:   false, 
      dataIndex:  'id', 
      displayField:  'display', 
      editable:   true, 
      emptyText:  'Select a part', 
      enableKeyEvents: true, 
      forceSelection: true, 
      listClass:  'x-combo-list-small', 
      listWidth:  500, 
      msgTarget:  'side', 
      preventMark:  true, 
      queryMode:  'local', 
      readOnly:   false, 
      selectOnFocus: false, 
      selectOnTab:  false, 
      store:   stoPartsDropDown, 
      title:   'Select a part', 
      typeAhead:  true, 
      typeAheadDelay: 100, 
      triggerAction: 'all', 
      valueField:  'id', 
      xtype:   'combobox' 
     }, 
     header:  'Part Number', 
     width:  280 
    } 

回答

0

我找到了答案。沒有Sencha的幫助。

基本上,您必須確保組合字段值(顯示/值)在組合實例和列字段中都匹配。