createjtcyWin:function(vwid){
var required_fields = ',XM,GXDM,SFZJLXDM,SFZJH,LXDZ,LXDH,YZBM';
           if(!this.jtcywin){
                var bodwidth = document.body.clientWidth * .98;
                var bodheigth = document.body.clientHeight - 50;
var winwidth  = 640;
var winheight = 550;
                if(bodwidth * 1 < 690){
                 winwidth = bodwidth - 50;
                }
                if(bodheigth * 1 < 600){
                 winheight = bodheigth - 50;
                }
this.jtcywin = new Ext.Window({
title:'家庭成员信息'
,width:winwidth
,height:winheight
,modal:true
,autoScroll : true
,closeAction: 'hide'
,items:[
    this.jtcyform = new Epx.FormPanelMultiColumn_ex({
objPath : jtcyobjPath
    ,layoutMode : 'table'
    ,grid : this.jtcy_grid
    ,columnCount : 2
    ,labelWidth : 80
        ,textOnly: false
        ,header: true
        ,textOnly_fields:''
        ,required_fields:required_fields
    ,hidden_fields : ''
    ,bodyStyle : 'padding:5px 5px 0;background-color:#fff;overflow:scroll'
    ,width : winwidth-15
   ,height : winheight -33
    ,autoScroll : true
        ,layer : this.layer
    ,fieldSetPaddingWidth : 22 
    ,frame:true
        ,buttons : [
        {
text : '保存'
   ,tooltip : {title : '保存', text : '保存页面的信息'}
   ,iconCls : 'save'
   ,handler : this.saveJTCY
   ,scope : JBXX
}
   ,{
text : '返回'
   ,tooltip : {title : '返回', text : '返回前一个页面'}
   ,iconCls : 'return'
   ,handler : this.returnmainForm
   ,scope : JBXX
}
]

   })   
]
});
}
this.jtcyform.on('afterSaveUpload', function(){
this.jtcy_grid.getStore().reload();
this.jtcywin.hide();
},this);
this.jtcywin.on('show',function(){
this.jtcyform.clearForm();
var editflag = false;
if (typeof(vwid) == 'string' && vwid!="") {
var record = this.jtcy_grid.getStore().getById(vwid);

this.jtcyform.initModifyForm(record); 
}else{
this.jtcyform.clearForm();
this.jtcyform.findById("XSBH").setValue(this.xsbh);
this.jtcyform.setFormState("new");
}
},this);
this.jtcywin.show();

}
this.Form.findById("CSRQ").readOnly=true 这句话 应该怎么写 

解决方案 »

  1.   

    只回答标题的提问
       editable : false
    试试
      

  2.   

    没看过你这种形式的datefield 一般加入readOnly : true 就可以实现了
      

  3.   

    问题是我只要时间控件为只读,而不是整个form里面都是只读的
      

  4.   

    这句话this.Form.findById("CSRQ").readOnly=true 应该这样写
    this.Form.findById("CSRQ").el.dom.readOnly=true