How can I add a checkbox in the column header? ext js

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

+3
source share
2 answers

Yes. Include Ext.grid.CheckboxSelectionModelas a column when declaring your ColumnModel.

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

: , , . / , RECONFIGURE , , /. , ( , ), RECONFIGURE "undefined", .

0

All Articles