您的位置:首页 > Web前端 > JavaScript

在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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐