Ext-设置form表单不可编辑
2015-09-14 09:59
246 查看
1.
2.
3.
var formEach = win.down('form').items.items; Ext.each(formEach,function(item){ console.log(item); //item.setReadOnly(true); item.setDisabled(true); //item.readOnly = true; item.fieldStyle = 'background:#E6E6E6'; });
2.
var form = getWinForm(grid); form.items.each(function(items) { items.items.each(function(item) { console.log(item); //item.setReadOnly(true); item.readOnly = true; item.fieldStyle = 'background:#E6E6E6'; }); });
3.
win.down('form').setDisabled(true);
相关文章推荐
- poj2478 Farey Sequence
- 用批处理文件来手动启动和停止Oracle服务
- Android 将软键盘的回车按钮改变成搜索按钮
- mysql替换空格
- iOS开发之SQLite-C语言接口规范(二) —— Prepared Your SQL Statements
- SQL sysobjects 表 详解
- Linux学习之六——使用vi和vim
- MRC BlOCK ARC
- 判断设备是否越狱
- ASP.NET与Ajax的实现方式小总结
- bash script 编程基础
- 滴滴出行新LOGO既山寨又失败,那么APP图标应如何设计
- 适用各个布局的自定义下拉刷新
- 5大架构:细数数据平台的组成与扩展
- qt中文国际化和图片资源使用方法
- fft代码
- 关于登陆验证码的见解
- struts2的select标签用法实例分析
- 图解Git
- DLL文件的作用