ExtJS combo box disabled properties not functioning

被刻印的时光 ゝ 提交于 2019-12-12 04:44:53

问题


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.


回答1:


You can add this to the combo box:

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

That will disable the box after being rendered.



来源:https://stackoverflow.com/questions/14993104/extjs-combo-box-disabled-properties-not-functioning

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!