user190794
user190794

Reputation: 465

How can I disable checkbox on the grid in ExtJS?

I need to disable checkbox 'Actions' in the drop-down menu on the grid

enter image description here

How can I do this?

Upvotes: 1

Views: 218

Answers (2)

Ludovic Feltz
Ludovic Feltz

Reputation: 11916

Simply set the field hideable of your column to false:

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

See hideable documentation.

Upvotes: 3

ikettu
ikettu

Reputation: 1203

Set column as hideable false so that end user can not hide column from UI.

Upvotes: 0

Related Questions