2011-12-20 51 views
2

我有一个组合框,可以根据特定条件启用和禁用组合框。组合框在IE禁用时消失Extjs

reportTypCombo: new Ext.form.ComboBox({ 
     id: 'reportTyp', 
     name: 'reportTyp', 
     valueField: 'value', 
     displayField: 'value', 
     typeAhead: true, 
     fieldLabel: 'Type', 
     allowBlank: false, 
     forceSelection: true, 
     triggerAction: 'all', 
     store: ReportManager.Form.Stores.typeComboStore, 
     mode: 'local', 
     lastQuery: '', 
     listeners: { 
      expand: function(combo) { 
       ..... 
      }, 
      select: function(combo, record) { 
       .... 
      }, 
      change:function(combo, newValue){ 
       .... 
      } 
     } 

当我打电话

reportTyp = form.findById('reportTyp'); 
reportTyp.setDisabled(false); 

在IE中消失。

请指导我。

我试过链接http://www.sencha.com/forum/showthread.php?84452-Combobox-disappears-on-disable-in-IE-7但无法解决它。

+0

哪个IE和ExtJS的版本是你的工作? – netemp 2011-12-20 08:52:07

+0

我正在使用3.3.1 – Rohit 2011-12-20 11:11:53

+0

做'reportTyp.enable()'工作吗? – JamesHalsall 2011-12-21 12:51:20

回答

1

我以前有过这个问题,并且解决了它从页面中删除文档类型的问题。 你有轮胎吗?

0

使用Ext.getCmp('reportType').setDisabled(false);

USET ext.getCmp()功能,以获得所需的ID组件在extjs