ExtJs ComboBox 动态创建下拉框
2017-06-23 09:33
239 查看
注:store中的url需要返回一个格式为[["1","a"]["2","b"]["3","c"]]的json格式的数据
var storeDept = new Ext.data.SimpleStore({
url:'<%=path %>/oneCardPassage/findCardDepartMentInfo.do',
fields:['value','text']
});
var deptCombo = new Ext.form.ComboBox({
id:'deptId',
width:100,
mode : 'remote',
triggerAction : 'all',
selectOnFocus : true,
forceSelection : true,
editable : false,
valueField : 'value',
displayField : 'text',
emptyText:'部门'},
store:storeDept
)
var storeDept = new Ext.data.SimpleStore({
url:'<%=path %>/oneCardPassage/findCardDepartMentInfo.do',
fields:['value','text']
});
var deptCombo = new Ext.form.ComboBox({
id:'deptId',
width:100,
mode : 'remote',
triggerAction : 'all',
selectOnFocus : true,
forceSelection : true,
editable : false,
valueField : 'value',
displayField : 'text',
emptyText:'部门'},
store:storeDept
)
相关文章推荐
- ExtJs创建动态树的方法
- DevExpress控件(二)动态创建ASPxComboBox
- extjs combobox下拉框显示位置问题
- ExtJs根据数据源Json数据来动态创建store与columnModel
- ExtJs Combobox点击就弹出下拉框
- extjs combobox下拉框显示位置问题
- extjs combobox下拉框显示位置问题
- extjs combobox下拉框显示位置问题
- extjs combobox下拉框显示位置问题
- ExtJS 动态创建
- extjs中grid中嵌入动态combobox的应用
- extjs combobox下拉框显示位置问题
- ExtJS中如何根据combobox的选值,动态地决定组件的显隐?
- extjs 动态radio创建
- ExtJs-简单动态ComboBox
- ExtJS Combobox 中Store动态传参数
- 用C#创建Excel,添加下拉框列,并动态给下拉框赋值
- extjs动态和静态加载下拉框
- Extjs FormPanel.getForm().getValues()对下拉框(Combobox)取值的问题
- extjs多行下拉框(combobox)