很简单啊,通过程序读取数据字典里的值,将其写入store里,然后下拉框调用此store就行了。给你举个例子:
var store = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
<%
List
for(int i=0;i
{'abbr':'<%=dbasicList.get(i).getValue()%>', 'name':'<%=dbasicList.get(i).getName()%>'} <%if((i+1)
<%}%>
]
});
然后调用
{xtype: 'combobox',editable:false,name: 'picType',fieldLabel: '图片类型',store: store,queryMode: 'local',displayField: 'name',valueField: 'abbr'}