如何在ExtJS中禁用网格上的复选框?

时间:2017-05-03 12:36:19

标签: javascript extjs

我需要在网格下拉菜单中禁用复选框“操作”

enter image description here

我该怎么做?

2 个答案:

答案 0 :(得分:3)

只需将的字段hideable设置为false:

columns: [
    {
        xtype: 'gridcolumn',
        text: 'Option'
    }
    {
        xtype: 'actioncolumn',
        text: 'Actions'
        hideable: false, // <<== Here
        hidden: false
    }
]

请参阅hideable文档。

答案 1 :(得分:0)

将列设置为hideable false,以便最终用户无法从UI隐藏列。