首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

EXT3.1 combobox上拉框无法显示解决方案

2012-10-14 
EXT3.1 combobox下拉框无法显示解决方案{fieldLabel: 政治面貌,name: political,xtype: combo,store

EXT3.1 combobox下拉框无法显示解决方案

{            fieldLabel: '政治面貌',            name: 'political',            xtype: 'combo',            store: new Ext.data.SimpleStore({                fields: ['text'],                data: [['群众'],['党员'],['团员']]            }),            emptyText: '请选择',            mode: 'local',            triggerAction: 'all',            valueField: 'text',            displayField: 'text',            editable:false        }

这是在form里面添加第一个下拉框,如果你想让用户只选择你填入的条目,建议不要使用
readOnly:true 因为在这个ext版本中,会使下拉框不能正常显示(bug),建议使用editable:false 同样可以达到效果

热点排行