PDA

View Full Version : Problem Event Binding on Controller



Vishnu C
1 Aug 2012, 4:00 AM
I have created Ext js 4.1 application . i am trying to get change event of radio button group on controller .
but in debug mode i will get the event on controller. when i build on production as minifyed i will not get the event.please Help Me...

My code is given below.


on controller
'projectWatchListView radiogroup[action=topProjectWatchLIstRadio]': {
change:this.onClickRadioButton
}


on View
{
xtype: 'radiogroup',
action: 'topProjectWatchLIstRadio',
columns: [50, 50],
// Arrange radio buttons into two columns, distributed vertically
columns: 2,
vertical: true,
flex: 4,
items: [{
xtype: 'radiofield',
name: 'radioProjectWatchList',
inputValue: 'FieldEstimate',
action: 'sortProjectWatchListBudget',
style:'color:white;',
boxLabel: 'Field Estimate',
checked: true,
flex:1
},
{
xtype: 'radiofield',
name: 'radioProjectWatchList',
inputValue: 'Actuals',
action: 'sortProjectWatchListAFECount',
style:'color:white',
boxLabel: 'Actuals',
flex:1
}]

}