Ext-设置form表单不可编辑

1.

    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);
上一篇:css实现选项卡


下一篇:基于均值漂移的三维网格分割算法(Mean Shift)