extJS RadioGroup setValue() function

I have created RadioGroup using the code

var radios = new Ext.form.RadioGroup({
     columns    : 2,
       items: [
             {boxLabel: 'E-Mail', name: 'communication', inputValue: 1},
             {boxLabel: 'Nagios', name: 'communication', inputValue: 2}
        ]
   });

I want to check one of the radio button on some event. How to do it? Я пробовал использовать:

radios.setValue(true, false);

, но он не работает.

8
задан demongolem 30 June 2011 в 17:09
поделиться