Steps to reproduce:
Take sample Local and Databound Combobox sample:
-1-
Modify itemName to:
itemName.setValueField("itemID");
itemName.setDisplayField("itemName");
itemName.addChangedHandler(new ChangedHandler() {
public void onChanged(ChangedEvent event) {
itemName.getSelectedRecord();
}
});
-2-
Search in itemName by text. For example 'Mo' and select mouse holder
-3-
Open the comboboxlist and the displaytext is changed to the valueField (the ItemID)
Notes: The problem is with the getSelectedRecord() on the onchange. If you remove it there is no problem.
Tested in IE9, Chrome 13
SmartGWT 2.4
GWT 2.3
SmartGWT log empty for default logging preferences.
Take sample Local and Databound Combobox sample:
-1-
Modify itemName to:
itemName.setValueField("itemID");
itemName.setDisplayField("itemName");
itemName.addChangedHandler(new ChangedHandler() {
public void onChanged(ChangedEvent event) {
itemName.getSelectedRecord();
}
});
-2-
Search in itemName by text. For example 'Mo' and select mouse holder
-3-
Open the comboboxlist and the displaytext is changed to the valueField (the ItemID)
Notes: The problem is with the getSelectedRecord() on the onchange. If you remove it there is no problem.
Tested in IE9, Chrome 13
SmartGWT 2.4
GWT 2.3
SmartGWT log empty for default logging preferences.
Comment