Hello,


In my form I have
- 2 radio button : "program" and "now"
- 3 text fields : date, hour and min

By default, the "now" field is selected and the 3 text field are enabled.

When I click on "program", the 3 text field are enabled.

PHP Code:
now.on ('check',  function () {
   
date_when.setDisabled(true);
   
text_hour.disable();
   
text_min.disable();
} ); 
BUT when I click back on "program", the 3 text field are still enabled. It is not the correct behavior. I would like to disable the 3 text field.

When the user want to launch immediately a task, he haven't to enter a date and a time.

Unfortunately, I could see it is a bug
1.1.1/2.0][Closed]Ext.form.Radio check event only fires once

I try the fix of brian.moeskau but it doesn't work.

PHP Code:
Ext.override(Ext.form.Radio, {
    
onClick : function(){
        if(
this.el.dom.checked != this.checked){
            var 
els this.el.up('form').select('input[name='+this.el.dom.name+']');
            
els.each(function(el){
                if(
el.dom.id == this.id){
                    
this.setValue(true);
                }else{
                    
Ext.getCmp(el.dom.id).setValue(false);                
                }
            }, 
this);
        }
    }
}); 

So when I create the radio button with ExtJS, I would like add event onClick. So I could could manage my event with DOM : http://developer.mozilla.org/en/docs/DOM:event