Reputation: 121
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
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