I have a grid in which I have added headerCheckbox
to get the functionality of Select/Deselect All. Also added checkchange
event to the checkcolumn
. The event works fine when I manually select/deselect any checkbox, but it does not fire when I do the selection via the header checkbox.
So my requirement is like whenever there is any selection change in the checkbox the event should get fired.
This is my column in Grid:
{
xtype: 'checkcolumn',
dataIndex: 'xyz',
text: '',
headerCheckbox: true,
width: 25,
stopSelection: true,
sortable: false,
draggable: false,
resizable: false,
menuDisabled: true,
hideable: false
}
An event in the Controller:
control: {
'checkcolumn':{
checkchange: 'onCheckChange'
}
},
onCheckChange : function ( checkbox, rowIndex, checked, record, e, eOpts ) {
console.log(record);
}