View Full Version : Radio not throwing change events

19 May 2009, 8:23 AM

I have tried adding a listener to the RadioGroup for Events.CHANGE and Events.ONCHANGE
I have also tried adding a listener to every Radio in the RadioGroup for Events.CHANGE and Events.ONCHANGE

The listener is never being called when I change the radio group selected value. Could you tell me what I should be doing (even if it doesn't work now)? Thanks.

Joe Hudson

17 Jul 2009, 3:43 AM
use setFireChangeEventOnSetValue(true) and it works as expected (the default behavior is to fire on blur - which seems counter intuitive for many users, including me ;-) )

17 Jul 2009, 3:53 AM
We are going to add support to handle the blur of fields that have more than one dom element (as Radio/CheckBox).
This should fix blur issues with Radio/Checkbox/etc

17 Jul 2009, 4:49 AM
sorry for the wrong info - as I noticed right now it is no longer necessary to set setFireChangeEventOnSetValue(true) as this is the new default for checkboxes and radios (as of gxt 2.0):

public CheckBox() {
value = false;
propertyEditor = new BooleanPropertyEditor();