View Full Version : Create CheckBox in grid column header

23 Sep 2012, 8:50 PM
how to Create CheckBox in grid column header in extjs4

23 Sep 2012, 11:07 PM

you may use following for your needs:-

Just use Ext.grid.CheckboxSelectionModel as a column when declaring your Columns for your grid.

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

24 Sep 2012, 3:37 AM
Hi All,

My requirement is like when user checks or selects the starting cell in the first row then it should select all the check boxes in row of the grid.

For above requirement im using the GridPanel and Ext.selection.CheckboxModel.
And grid columns => xtype:checkcolumn.

Its working fine, but when user checking or unchecking the row cells then its creating the duplicate rows.
And also suggest me how hide the columns dynamically based on condition.
im setting true or false into status variable , like , hidden:status.

Its very very urgent,