Sergey
Sergey

Reputation: 121

how can i add checkbox in a column header? ext js

I have a grid, with dynamically changing number of columns. I've already got column with checkboxes. I need to add a checkBox to other columns headers, only to headers.

Upvotes: 3

Views: 4202

Answers (1)

Robby Pond
Robby Pond

Reputation: 73494

Yes. Include the Ext.grid.CheckboxSelectionModel as a column when declaring your ColumnModel.

var colModel = new Ext.grid.ColumnModel({
    columns: [ new Ext.grid.CheckboxSelectionModel(),
    {/* other columns}]
});

Upvotes: 1

Related Questions