2014-02-20 39 views
0

如果插件存在一個奇怪的問題,使得組合框允許多個選擇,該插件是LovCombo,如果我選擇了該選項,我可以選擇多個選項用向下箭頭摺疊組合框我看到選擇留在組合框中,如果我做出選擇,然後單擊組合框外的任何位置,則值將消失!Extjs 2.3 Combobox Multi Selection在其他地方點擊時清除

問題可以在http://jsfiddle.net/5Asf4/12/

Ext.onReady(function() { 

var lc = new Ext.ux.form.LovCombo({ 
    id:'lovcombo' 
    //,width:300 
    ,fieldLabel: 'Test Data' 
    ,hideOnSelect:false 
    //,maxHeight:200 
    ,store:[ 
     [1, 'Personnel []'] 
     ,[11, 'Finance (33)'] 
     ,[5, 'Door'] 
     ,[6, 'Door Panel'] 
     ,[2, 'Management !77'] 
     ,[25, 'Production'] 
     ,[3, 'Users'] 
     ,[20, 'Window'] 
     ,[21, 'Window Panel'] 
     ,[22, 'Form Panel'] 
     ,[23, 'Grid Panel'] 
     ,[24, 'Data View Panel'] 
    ] 
    ,triggerAction:'all' 
    ,mode:'local' 
}); 

var addAssetDialog = new Ext.Window({ 
    id: 'maintenance_addAssetDialog', 
    title: 'Test Multi Select Combobox', 
    closeAction: 'hide', 
    items:[ 
     { 
      xtype: 'form', 
      id: 'maintenance_addAssetForm', 
      border: false, 
      bodyBorder: false, 
      items: [ 
       lc 
      ], 
     } 
    ], 
    buttons:[ 
     {       
      text: 'Cancel', 
      disabled: true, 
      handler: function () { 
      }, 
      scope: this 
     }, 
     { 
      text: 'Save', 
      disabled: true, 
      handler: function () { 
      }, 
      scope: this 
     } 
    ], 
}); 

addAssetDialog.show(); 

})可以看出; //結束onReady

回答

相關問題