在extjs 中,如何将checkbobox变成不可以选择。
2013-03-19 17:05
190 查看
1.方法一: config :readonly:true;
this.fileTypeCombo = new Ext.form.ComboBox({
id : 'fileTypeCombo',
name : 'fileType',
typeAhead : true,
triggerAction : 'all',
readonly:true;
lazyRender : true,
store : new Ext.data.SimpleStore({
id : 'fileTypeComboStore',
fields : [ {
name : 'id',
type : 'int'
}, 'descr' ],
data : [ [ 1, 'Incremental' ], [ 2, 'Universal' ] ]
}),
triggerAction : 'all',
valueField : 'descr',
displayField : 'descr',
mode : 'local',
allowBlank : false,
editable : false,
listeners : {
scope : this,
'select' : this.checkOTFCFileType
}
});
2.方法二:setReadOnly(true);
Ext .getCmp(
'addF_'
+ i + '_delimiter').setReadOnly(true);
this.fileTypeCombo = new Ext.form.ComboBox({
id : 'fileTypeCombo',
name : 'fileType',
typeAhead : true,
triggerAction : 'all',
readonly:true;
lazyRender : true,
store : new Ext.data.SimpleStore({
id : 'fileTypeComboStore',
fields : [ {
name : 'id',
type : 'int'
}, 'descr' ],
data : [ [ 1, 'Incremental' ], [ 2, 'Universal' ] ]
}),
triggerAction : 'all',
valueField : 'descr',
displayField : 'descr',
mode : 'local',
allowBlank : false,
editable : false,
listeners : {
scope : this,
'select' : this.checkOTFCFileType
}
});
2.方法二:setReadOnly(true);
Ext .getCmp(
'addF_'
+ i + '_delimiter').setReadOnly(true);
相关文章推荐
- 如何为博客选择可以赢利的主题
- 影速科技:如何选择可以搭建海外私人游戏的服务器?
- ExtJS如何取得GridPanel当前选择行数据对象 - nuccch的专栏 - 博客频道 - CSDN.NET
- 关于输入框input如何实现只可以选择不可以键盘输入
- 如何根据驱动程序及其安装文件来访问该设备呢(Visual C++ or C++ Builder均可以) 选择自 kingcaiyao 的 Blog
- 创业如何正确选择技术支持?看了不爽可以报警!
- 如何在input标签选择图片上传并设置图片大小以及点击图片可以选择删除
- IntelliJ2017:如何将一段代码变成可以便捷输入的模板
- extJS checkBoxColunmTree 可以选择带checkBox的树(tree、grid)
- extjs4 grid 实现可以选择文本内容进行复制
- 如何使TextView可以选择复制又可以点击超链接
- IntelliJ2017:如何将一段代码变成可以便捷输入的模板
- ExtJS6.0扩展日期选择控件为也可以选择时间
- 如何将Exchange 的数据变成可以编辑及计算的数据?
- 多方向如何选择数据分析之营业额不一定可以决定方向
- 在12306网站上如何可以选择上中下铺
- Android如何将第三方预装的AP安装在data/app下面,用户可以选择卸载,但是在用户恢复出厂设置后,会再次自动安装
- 在xml布局文件中,我们既可以设置px,也可以设置dp(或者dip)。一般情况下,我们都会选择使用dp,这样可以保证不同屏幕分辨率的机器上布局一致。但是在代码中,如何处理呢?很多控件的方法中都只提供了
- 如何实现把CListCtrl类中的数据存储到txt或excel中,并且存储位置可以自己选择?具体代码是什么?
- asp.net mvc asp.net webform extjs jquery这些东西应该如何选择