-
2 Feb 2013 1:36 PM #1
Issue with ComboBox custom typing
Issue with ComboBox custom typing
Hello,
I tried to set up a simple example of a ComboBox which accepts values from it's store and user defined values. Here is the code sample:
The combobox works fine for values selected in the list, but doesn't keep user defined values (combobox is reset to blank as soon as the combo looses focus).Code:StockProperties props = GWT.create(StockProperties.class); ListStore<Stock> store = new ListStore<Stock>(props.key()); store.addAll(TestData.getStocks()); final ComboBox<Stock> combo = new ComboBox<Stock>(store, props.nameLabel()); combo.setAllowBlank(false); combo.setForceSelection(false); combo.setEditable(true); combo.setAllowTextSelection(true); combo.setTriggerAction(TriggerAction.ALL);
The documentation says that enabling editable(true) & setForceSelection(false) should be sufficient to get the desired behavior.
This exemple can be easily reproduced using the sample at http://www.sencha.com/examples/#Exam...e:formsexample
Any idea? Is this a bug of the combobox component?
Thanks a lot
A.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote