I have a ChangedHandler on a DataBound ComboBoxItem that makes use of the newly selected record to set up some other fields in the form. If I open up the pick list dropdown and make a selection that way everything works fine.
However, if I type into the combobox and press Tab the ChangedHandler fires before the newly selected Record is returned from the server. My ChangedHandler code sees that ComboBoxItem.getSelectedRecord() returns null so it can't perform it's function yet.
Do I need both a ChangedHandler and a DataArrivedHandler to do the same thing? Is there a better pattern to follow here?
However, if I type into the combobox and press Tab the ChangedHandler fires before the newly selected Record is returned from the server. My ChangedHandler code sees that ComboBoxItem.getSelectedRecord() returns null so it can't perform it's function yet.
Do I need both a ChangedHandler and a DataArrivedHandler to do the same thing? Is there a better pattern to follow here?
Comment