ext js 3.3.1 Combobox 加载Item -调试能够显示-直接浏览不显示
时间:2011-03-05
来源:互联网
{
layout: 'column',
border: false,
items: [{
columnWidth: .33,
layout: 'form',
labelWidth: 90, // 标签宽度
defaultType: 'textfield',
border: false,
items: [new Ext.form.ComboBox({
hiddenName: 'F_TypeNo',
fieldLabel: '工作状态',
emptyText: '请选择',
triggerAction: 'all',
store: new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url :'/HRM/GetComBoxItems'
}),
reader : new Ext.data.JsonReader({}, [{
name : 'Value'
}, {
name : 'Text'
}]),
baseParams : {
areacode : '53'
}
}),
displayField: 'Text',
valueField: 'Value',
mode: 'remote',
forceSelection: false, // 选中内容必须为下拉列表的子项
editable: true,
typeAhead: true,
resizable: true,
anchor: '100%'
})]
}
作为一个Item放在FormPanel里面,后台返回值:
[{"Value":"h00 ","Text":"正式工"},{"Value":"h01 ","Text":"临时工"},{"Value":"h02 ","Text":"配送商"},{"Value":"h03 ","Text":"短期促销员"},{"Value":"h04 ","Text":"实习生"},{"Value":"h05 ","Text":"试用期"},{"Value":"h06 ","Text":"离职"},{"Value":"h07 ","Text":"离退休"}]
layout: 'column',
border: false,
items: [{
columnWidth: .33,
layout: 'form',
labelWidth: 90, // 标签宽度
defaultType: 'textfield',
border: false,
items: [new Ext.form.ComboBox({
hiddenName: 'F_TypeNo',
fieldLabel: '工作状态',
emptyText: '请选择',
triggerAction: 'all',
store: new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url :'/HRM/GetComBoxItems'
}),
reader : new Ext.data.JsonReader({}, [{
name : 'Value'
}, {
name : 'Text'
}]),
baseParams : {
areacode : '53'
}
}),
displayField: 'Text',
valueField: 'Value',
mode: 'remote',
forceSelection: false, // 选中内容必须为下拉列表的子项
editable: true,
typeAhead: true,
resizable: true,
anchor: '100%'
})]
}
作为一个Item放在FormPanel里面,后台返回值:
[{"Value":"h00 ","Text":"正式工"},{"Value":"h01 ","Text":"临时工"},{"Value":"h02 ","Text":"配送商"},{"Value":"h03 ","Text":"短期促销员"},{"Value":"h04 ","Text":"实习生"},{"Value":"h05 ","Text":"试用期"},{"Value":"h06 ","Text":"离职"},{"Value":"h07 ","Text":"离退休"}]
作者: lihui123 发布时间: 2011-03-05
看combo的store里面有没有数据
作者: aj3423 发布时间: 2011-03-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28