I'm have a custom field for a related datasource that I'm attempting to use listGrid.setEditorCustomizer(...) to construct an editor for. I want the functionality of a SelectItem that allows the user to create a non existent value if the pickList does not contain it. A SelectOtherItem configure with an OptionDataSource seems like the logical widget for the job. However, the pickList's other option disappears when configured that way.
Here is a smartgwt/showcase/#select_other_combobox_category mod that shows the issue:
SmartClient Version: v11.1p_2018-07-19/PowerEdition Deployment (built 2018-07-19) using Chrome
Here is a smartgwt/showcase/#select_other_combobox_category mod that shows the issue:
Code:
final DynamicForm form = new DynamicForm(); form.setWidth(300); SelectOtherItem selectOtherItem = new SelectOtherItem(); selectOtherItem.setOtherTitle("Other.."); selectOtherItem.setOtherValue("OtherVal"); selectOtherItem.setTitle("Units"); // configure the values with an optionDataSource instead //selectOtherItem.setValueMap("Ea", "Pkt", "Bag", "Ctn"); selectOtherItem.setValueField("BenchName"); selectOtherItem.setOptionDataSource(DataSource.get("Test_Bench")); form.setFields(selectOtherItem);
Comment