xtype: 'combo',
mode: 'local',
value: '1',
allowBlank: false,
triggerAction: 'all',
forceSelection: true,
editable: false,
fieldLabel: 'Is This Your Territory?',
name: 'is_territory',
hiddenName: 'is_territory',
displayField: 'name',
valueField: 'id',
width: 230,
store: yesnoStore,这是我的code.why,在ie中没有显示。
发布于 2013-03-04 19:38:24
我检查过你的代码,它在IE上运行。你在定义你的yesnoStore商店吗?或者可能只是代码末尾的额外coma:yesnoStore,,删除它。
在你的脚本中包含一个存储,这个组合就能正常工作:
var yesnoStore = new Ext.data.ArrayStore({
fields: ['id', 'name'],
data : [['0','option_1'],['1','option_2'],['2','option_3'],['3','option_4']]
});这个例子在IE上工作,也许问题出在你的商店里。
{
xtype: 'combo',
mode: 'local',
value:'1',
allowBlank: false,
triggerAction: 'all',
forceSelection: true,
editable: false,
fieldLabel: 'Is This Your Territory?',
name: 'is_territory',
hiddenName: 'is_territory',
displayField: 'name',
valueField: 'id',
width: 230,
store: yesnoStore
}https://stackoverflow.com/questions/15200243
复制相似问题