how can i add checkbox in a column header? ext js
I have a grid, with dynamically ch开发者_StackOverflow社区anging number of columns. I've already got column with checkboxes. I need to add a checkBox to other columns headers, only to headers.
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}]
});
精彩评论