如何将组合设为只读?
我知道如何将文本框设置为只读,但它不适用于组合。
最佳答案
你确定你已经用 readOnly: true 选项配置了你的组合框吗?
var combo = new Ext.form.ComboBox({
typeAhead: true,
readOnly: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: new Ext.data.ArrayStore({
id: 0,
fields: [
'myId',
'displayText'
],
data: [[1, 'item1'], [2, 'item2']]
}),
valueField: 'myId',
displayField: 'displayText'
});
关于javascript - EXT JS中的只读组合框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5768978/