2012-10-17 2 views
0

나는 2 콤보 박스를 가지고 있는데, 두 번째 콤보 박스를 클릭하면 로딩이 나타나고리스트 아이템을 클릭 할 때까지 거기에 남아 있습니다. 두 번째 콤보에로드를 표시하고 싶지 않습니다.콤보 박스를 클릭하면 로딩이 나타납니다. 어떻게 피합니까?

나는 두 번째 콤보 박스를 클릭 할 때 두 개의 콤보 박스를 가지고 있는데,로드가 나타나고 목록 항목을 클릭 할 때까지 거기에 남아 있습니다. 두 번째 콤보에로드를 표시하고 싶지 않습니다.

var UnitPanel = Ext.create('Ext.panel.Panel', { 
       itemId:'dsUnitPanel', 
       border:0, 
       items:[UnitGrid,{ 
       xtype:'combobox', 
       tpl: '<tpl for="."><div class="x-boundlist-item" >{name} [{freeSize} GB Free] </div></tpl>', 
       style:'margin:10px;', 
       fieldLabel: 'A Group(*)', 
       editable:false, 
       bodyStyle:'padding-left:10px;', 
       store: dsAStore, 
       valueField:'name', 
       displayField:'name', 
       //forceSelection: true, 
       multiSelect: false, 
       name: 'txtMode', 
       id:'dsVolumeGroupId', 
       queryMode: 'local', 
       triggerAction: 'all', 
       emptyText:'Select A Group', 
       listeners: {     
        select: function(combo, record, index) {  

        this.getStore().each(function(r){     

         if(combo.getValue() == r.data['name']) 
         { 
          selectedDsVg = combo.getValue(); 
          selectedDsVgFreeSize = r.data['freeSize'];            
         } 
        }); 

        } , 

        'focus':function() 
        { 

        if(selectedDsWizardIndex == null) 
        { 
         Ext.MessageBox.alert('Error', 'Please select at least one Array',function(){ 
           enableTabIndexing(); 
          });  

        } 
        } 

       } 
      }, 
      { 
       xtype:'combobox', 
       style:'margin:10px;', 
       fieldLabel: 'B Group(*)', 
       editable:false, 
       bodyStyle:'padding-left:10px;', 
       loadMask: false, 
       store: BGroupStore, 
       valueField:'value', 
       displayField:'name', 
       multiSelect: false, 
       name: 'dsBGroupId', 
       id:'dsBGroupId', 
       queryMode: 'local', 
       triggerAction: 'all', 
       //disabled:true, 
       emptyText:'Select B Group', 
       listeners: {     
        select: function(combo, record, index) {  

         //store.on('load', function() { this.getPicker().setLoading(false); }, this); 
         this.getStore().loadMask.hide(); 
        this.getStore().each(function(r){     

         if(combo.getValue() == r.data['value']) 
         { 
          alert('Select'); 
          bGroupName = r.data['name'];              
         } 
        }); 

        }, 

        'focus':function() 
        {   
        if(selectedDsWizardIndex == null) 
        { 
         Ext.MessageBox.alert('Error', 'Please select at least one',function(){ 
           enableTabIndexing(); 
          });  

        } 
        } 


       } 
      } 

좋습니다.

답변

2

당신은 같은 listConfig을 정의해야합니다 :

listConfig: { loadingText: null, loadMask: false }

관련 문제