Hi,
I am unable to get the selectionchange event of grid in controller.
Give all my codes.
grid code that is inside a window.
Code:
var regionSM = Ext.create('Ext.selection.CheckboxModel');
Ext.define('LLSO.view.deliveryGroupPerformance.summary.SummaryRegionPopUp', {
extend : 'LLSO.view.components.PopUp',
alias : 'widget.summaryregionpopup',
id : 'summaryregionpopup',
title : 'summaryregionpopup',
requires : [ 'LLSO.view.components.CheckGrid' ],
action : 'showRegion',
initComponent : function() {
this.items = [
{
xtype : 'checkgrid',
itemId : 'regionCheckgridId',
id : 'regionCheckgridId',
store : 'deliveryGroupPerformances.RegionStore',
selModel : regionSM,
selType : 'checkboxmodel',
action : 'change',
columns : [ {
menuDisabled : true,
dataIndex : 'region',
text : 'All',
flex : 1
} ],
viewConfig : {
stripeRows : true,
action : 'regionPrefAction'
}/*,
listeners :{
selectionchange : function(){
alert(6);
}
}*/
} ];
this.callParent(arguments);
},
layout : {
type : 'vbox',
align : 'right'
}
});
controller
Code:
'checkgrid[action=change]': {
selectionchange : this.onSelectionChange
}
onSelectionChange: function(){
alert("got change");
},
But when i am using the listener inside the view it is working.
How i will take the selectionchange event to controller