PDA

View Full Version : radiogroup component has a bug : when I mon the change event its excute twice



madzhangqi
27 Jun 2011, 6:51 PM
{
xtype: 'radiogroup',
fieldLabel: 'Auto Layout',
cls: 'x-check-group-alt',
listeners:{
change:function(comp,n){
alert("hello");
}
},


items: [
{boxLabel: 'Item 1', name: 'rb-auto', inputValue: 1},
{boxLabel: 'Item 2', name: 'rb-auto', inputValue: 2, checked: true},
{boxLabel: 'Item 3', name: 'rb-auto', inputValue: 3},
{boxLabel: 'Item 4', name: 'rb-auto', inputValue: 4},
{boxLabel: 'Item 5', name: 'rb-auto', inputValue: 5}
]
}
when I select the radio, its alert "hello" twice? why?