var editgg_form=new Ext.form.FormPanel({
labelAlign : 'right',
labelWidth : 70,
bodyStyle : 'padding:5px',
method:"post",
frame:true,
items:[{
fieldLabel:'标题',
xtype:'textfield',
width:300
},{
fieldLabel:'时间',
xtype:'datefield',
width:150,
format:'Y-m-d',
value:new Date()
},{
xtype:'combo',
store:addgg_store,
triggerAction:"all",
valueField:"id",
displayField:"name",
value:"1",
fieldLabel:"置顶",
width:150,
editable :false,
hiddenName:'zd',
name:'zd'
},{
fieldLabel:'内容',
xtype:'textarea',
id:'ggcontent',
width:530,
height:300
}],
listeners:{
'render':function(){
KE.show({
id:'ggcontent'
});
setTimeout("KE.create('ggcontent');", 1000); }
},
buttons:[{
text:'提交'
},{
text:'重置'
}],
buttonAlign:'center'
})
重要的是这一部分:
listeners:{
'render':function(){
KE.show({
id:'ggcontent'
});
setTimeout("KE.create('ggcontent');", 1000);
}
},