formpanel 怎么添加 EditGridPanel
varaddModifyPanel=newExt.FormPanel({//labelAlign:'left',//标签靠右对齐labelWidth:80,frame:t...
var addModifyPanel = new Ext.FormPanel({
//labelAlign: 'left',//标签靠右对齐
labelWidth: 80,
frame:true,
width:document.body.clientWidth,
height:document.body.clientHeight,
//height:550,
//width:830,
title: 'CODcr检测报告',
//bodyStyle:'padding:5px 5px 0',
//width: 350,
//defaults: {width: 230},
//defaultType: 'textfield',
items:[
{
layout:'column',items:[//列
{
columnWidth:.4,layout: 'form',items:[//行
{xtype:'textfield',fieldLabel: '测定地点',name: 'settingPlace',anchor:'90%'}
]
},{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel: "室    温",name: 'roomTemperature',anchor:'90%'}
]
},{
columnWidth:.3,layout: 'form',items:[
new fm.DateField({ // 日期的编辑框
fieldLabel:"日    期",
id:'settingData',
anchor:'90%',
//value:'<%=maintainData%>',
format: 'Y-m-d', // 格式
minValue: '1980-08-08' ,
disabledDaysText: '日期格式无效',
allowBlank: true, // 是否能为空
blankText:'该项不允许为空!'
})
]
}
]
},{
layout:'column',items:[
{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'V终(标定)',name:'vEnd',anchor:'90%'}
]
},{
columnWidth:.2,layout:'form',items:[
{xtype:'textfield',fieldLabel:'V耗(标定)',name:'vCost',anchor:'90%'}
]
},{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'标定值',name:'calibrationValue',anchor:'90%'}
]
},{
columnWidth:.3,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'浓度(mol/L)',name:'thickness',anchor:'90%'}
]
}
]
},{
layout:'column',items:[{//第三行放EditGridPanel
columnWidth:.3,layout: 'form',items:[
new Ext.grid.EditorGridPanel({
renderTo:'addModifyGrid',
cm:cm,
store: store
})
]
}]
},{
layout:'column',items:[
]
}
],//panel_items控件-end
buttons: [{
text:'保存'
},{
text:'取消'
}]//panel里的按钮-end
});//frompanel-end
说明:如题,去掉 new Ext.grid.EditorGridPanel({
renderTo:'addModifyGrid',
cm:cm,
store: store
})
这个就可以显示。。 展开
//labelAlign: 'left',//标签靠右对齐
labelWidth: 80,
frame:true,
width:document.body.clientWidth,
height:document.body.clientHeight,
//height:550,
//width:830,
title: 'CODcr检测报告',
//bodyStyle:'padding:5px 5px 0',
//width: 350,
//defaults: {width: 230},
//defaultType: 'textfield',
items:[
{
layout:'column',items:[//列
{
columnWidth:.4,layout: 'form',items:[//行
{xtype:'textfield',fieldLabel: '测定地点',name: 'settingPlace',anchor:'90%'}
]
},{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel: "室    温",name: 'roomTemperature',anchor:'90%'}
]
},{
columnWidth:.3,layout: 'form',items:[
new fm.DateField({ // 日期的编辑框
fieldLabel:"日    期",
id:'settingData',
anchor:'90%',
//value:'<%=maintainData%>',
format: 'Y-m-d', // 格式
minValue: '1980-08-08' ,
disabledDaysText: '日期格式无效',
allowBlank: true, // 是否能为空
blankText:'该项不允许为空!'
})
]
}
]
},{
layout:'column',items:[
{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'V终(标定)',name:'vEnd',anchor:'90%'}
]
},{
columnWidth:.2,layout:'form',items:[
{xtype:'textfield',fieldLabel:'V耗(标定)',name:'vCost',anchor:'90%'}
]
},{
columnWidth:.2,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'标定值',name:'calibrationValue',anchor:'90%'}
]
},{
columnWidth:.3,layout: 'form',items:[
{xtype:'textfield',fieldLabel:'浓度(mol/L)',name:'thickness',anchor:'90%'}
]
}
]
},{
layout:'column',items:[{//第三行放EditGridPanel
columnWidth:.3,layout: 'form',items:[
new Ext.grid.EditorGridPanel({
renderTo:'addModifyGrid',
cm:cm,
store: store
})
]
}]
},{
layout:'column',items:[
]
}
],//panel_items控件-end
buttons: [{
text:'保存'
},{
text:'取消'
}]//panel里的按钮-end
});//frompanel-end
说明:如题,去掉 new Ext.grid.EditorGridPanel({
renderTo:'addModifyGrid',
cm:cm,
store: store
})
这个就可以显示。。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询