PDA

View Full Version : Adding image or a control over Action Column Header



webfriend13
6 Jun 2012, 11:50 PM
HI All,

I have a grid. The grid contains two columns. The second column in the grid is an action column. I want to add checkbox in the header section of this column. How can we add a checkobx in the header section of the grid.

Please note : Checkbox is required only in the head of the grid,
36030

scottmartin
7 Jun 2012, 12:13 PM
Have you looked at the checkboxmodel to see how it was implemented there?
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/grid-plugins.html

Scott.

webfriend13
7 Jun 2012, 7:10 PM
Hi Scott,

Thank you for the reply. I have considered using CheckBoxModel but it adds checkbox in each row of the grid which I don't want. I am not sure if there is any option available within CheckBoxModel out of the box which would help us acheieve this.

scottmartin
7 Jun 2012, 7:17 PM
The idea for looking at this model was for painting the checkbox in the header as you specified. The actions would have to be controlled by you.

Scott.

roseg
31 Mar 2013, 10:55 PM
How can I add header in my actioncolumn? Thanks! in which config I need to put?

mtpillai
9 Apr 2013, 10:48 PM
by adding property
text: "edit/update"



{
xtype: 'actioncolumn',
text: 'Edit',
width: 40,
tooltip: 'Edit task',
align: 'center',
icon: '../simple-tasks/resources/images/edit_task.png'

}