如题
附上代码:var myform = new Ext.FormPanel({
                frame: true,
                border: false,
                bodyStyle: 'padding:20px 10px 0;margin:2 2 2 2;',
                labelAlign: 'right',
                labelWidth: 80,
                items: [txt_UserName, txt_RTime, txt_NeedDescription, txt_TruckDescription,       txt_LineDescription, txt_ContName, txt_ContPhone,
                         txt_AddTime, txt_EditTime, txt_BeginTime, txt_EndTime, txt_Res],
                buttons: [{ id: 'btnOk', text: '确定', handler: dofinding}, { id: 'btnCancel', text: '取消', handler: doClose}]
            });

解决方案 »

  1.   

    可以用 disable(); 我不知道放在哪~
      

  2.   

    不知道你说的空间是什么...应该是
    disabled:true
    吧基本上都提供了这个option 
      

  3.   

    var myform = new Ext.FormPanel({
                    frame: true,
                    border: false,
                    bodyStyle: 'padding:20px 10px 0;margin:2 2 2 2;',
                    labelAlign: 'right',
                    labelWidth: 80,
                    disabled: true,                items: [txt_UserName, txt_RTime, txt_NeedDescription, txt_TruckDescription, txt_LineDescription, txt_ContName, txt_ContPhone,
                             txt_AddTime, txt_EditTime, txt_BeginTime, txt_EndTime, txt_Res],
                    buttons: [{ id: 'btnOk', text: '确定', handler: dofinding}, { id: 'btnCancel', text: '取消', handler: doClose}]
                });
    我把她放那 结果buttons 也不可用了。想把这些文本框不可编辑:
      

  4.   

    想要文本框不可用就在文本框那里加这个选项嘛...
    你这里只给了变量名,是new出来的么?
    构造的时候加上就好了
      

  5.   

    每个文本框属性  disabled:true 
      

  6.   

    editable:false
    ext 版本不同属性可能也不同,最好查一下对应的api谁来帮 我解决图片问题啊