PDA

View Full Version : Radio listener not working in Google Chrome



Jessimaa_2011
4 Jul 2012, 3:59 AM
if click the radio listener unable to hide and show the form field

Mycode :


listeners : {
'check' : function(combo) {
var SI_fg = Ext.getCmp(con.SI_YES);
if (SI_fg.checked == true) {

Ext.getCmp(con.FIRST_PAY_DATE).show();

} else {
Ext.getCmp(con.FIRST_PAY_DATE).hide();


}
}
}

sword-it
4 Jul 2012, 6:00 AM
hi jassimaa_2011,

Which framework are you used ? if it Extjs 4.1 then, check is not valid event for radio in 4.1.
You can try change event for example


Listeners:{
change:function(checkbox, newValue, oldValue, option){

if (newValue == true) {
Ext.getCmp(con.FIRST_PAY_DATE).show();
}
else {
Ext.getCmp(con.FIRST_PAY_DATE).hide();
}
}
}




for more information see http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Radio-event-change

Jessimaa_2011
10 Jul 2012, 11:37 PM
hi jassimaa_2011,

Which framework are you used ? if it Extjs 4.1 then, check is not valid event for radio in 4.1.
You can try change event for example


Listeners:{
change:function(checkbox, newValue, oldValue, option){

if (newValue == true) {
Ext.getCmp(con.FIRST_PAY_DATE).show();
}
else {
Ext.getCmp(con.FIRST_PAY_DATE).hide();
}

}
}




for more information see http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Radio-event-change


i am using extjs3.4 framework , still radio listener not working