0

我在网格中显示一个组合框。组合框的值来自本地商店。需要为其中一行禁用组合框。我使用了 widget.setDisabled(true)。它似乎有效,但是当我单击时,组合框向我显示所有值。

下面是我的代码:

{
xtype: 'widgetcolumn',
text: 'Code',
dataIndex: 'code',
widget: {
    xtype: 'codecombo'
},
editor: {
    xtype: 'codecombo'
},
onWidgetAttach: function (col, widget, rec) 
{
    widget.setDisabled(rec.get('type') === 2);
}
}

谢谢!

4

0 回答 0