ExtJS组合框禁用属性不起作用 [英] ExtJS combo box disabled properties not functioning

查看:159
本文介绍了ExtJS组合框禁用属性不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图禁用组合框组件的disabled属性,但它不工作。代码如下:

  xtype:'bkl.exchange.ExchangeRFCombo',
disabled:true,
fieldLabel:'Exchange',
id:'exchMapee',
valueField:'omsMappingCode',
editable:false

模式是远程模式,而不是本地模式。因此,组合框显示的值来自数据库。有这个问题的解决方案吗?



您的帮助非常感谢。



谢谢。 >

解决方案

您可以将此添加到组合框中:

  listeners:{
'afterRender':function(){
this.disable();
}
}

p>

I attempted to disable the combo box component with the disabled attribute however it's not working. The code is below:

xtype: 'bkl.exchange.ExchangeRFCombo',
disabled: true,
fieldLabel: 'Exchange',
id: 'exchMapee',
valueField: 'omsMappingCode',
editable: false

The mode is remote and not local. So the values displayed by the combo box is from the database. Is there a solution to this problem?

Your help is kindly appreciated.

Thank You.

解决方案

You can add this to the combo box:

listeners: {
             'afterRender': function () {
                 this.disable();
             }
         }

That will disable the box after being rendered.

这篇关于ExtJS组合框禁用属性不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆