诡异!Extjs中CheckBox的方框显示不出来!帮忙看下

Joey_Blue 2010-07-12 09:49:22

recordForm = new Ext.FormPanel({
labelSeparator : ":",
frame : true,
border : false,
height : 180,
reader : new Ext.data.JsonReader({
success : "success",
root : "data"
}, [{
name : 'depId',
mapping : 'depId'
}, {
name : 'depName',
mapping : 'depName'
}, {
name : 'depPath',
mapping : 'depPath'
}, {
name : 'depParId',
mapping : 'depParId'
}, {
name : 'depPrincipal',
mapping : 'depPrincipal'
}, {
name : 'depType',
mapping : 'depType'
}, {
name : 'depRemark',
mapping : 'depRemark'
}]),
items : [{
xtype : 'textfield',
fieldLabel : '编号',
width : 150,
name : 'depId',
readOnly : true
}, {
xtype : 'textfield',
fieldLabel : '部门名称*',
width : 150,
maxLength : 30,
maxLengthText : '输入内容超过最大长度!',
name : 'depName',
allowBlank : false,
blankText : "部门名称必须填写"
}, {
xtype : 'textfield',
fieldLabel : '工号首字母',
width : 150,
maxLength : 1,
maxLengthText : '工号首字母只能一个字母,子部门不需要设置!',
name : 'depPath'
}, new Ext.form.ComboBox({
fieldLabel : '上级部门',
hiddenName : 'depParId',
store : new Ext.data.SimpleStore({
fields : ['depId', 'depName'],
data : Ext.grid.depComBoBoxItems
}),
displayField : 'depName',
valueField : 'depId',
typeAhead : true,
width : 150,
mode : 'local',
editable : false,
selectOnFocus : true
}), {
////////////////// 就是这里 这里checkBox框显示不出来
xtype : 'checkbox',
checked : true,
fieldLabel : '是否小区',
labelSeparator : '',
boxLabel : '是',
name : 'depType'
}, {
xtype : 'textfield',
fieldLabel : '负责人',
width : 150,
maxLength : 20,
maxLengthText : '输入内容超过最大长度!',
name : 'depPrincipal'
}, {
xtype : 'textfield',
fieldLabel : '备注',
width : 150,
maxLength : 60,
maxLengthText : '输入内容超过最大长度!',
name : 'depRemark'
}],
buttons : [{
text : '保存',
handler : submitInputForm
}, {
text : '关闭',
handler : function() {
winr.hide()
}
}]
})


...全文
344 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tsukisuki 2011-01-17
  • 打赏
  • 举报
回复
你用的EXTJS是3.0以上版本吗?

我这边也发生同样问题,用的是3.0,但是改成3.0以降版本后,可以显示了,所以我认为是EXTJS版本问题
Joey_Blue 2010-07-20
  • 打赏
  • 举报
回复
算了 我自己也没搞定
zoujp_xyz 2010-07-12
  • 打赏
  • 举报
回复
这里还有个 reader?
asdujiayong 2010-07-12
  • 打赏
  • 举报
回复
recordForm.doLayout();

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧