I had an application running on SmartGWT 2.5. After the update to 4, SelectItem that should show multiple values started to behave strange.
Mentioned SelectItem is placed in DynamicForm, and form is populated by calling "form.editRecord(record);"
In case that only one value is stored in "organizationType" field (example "RN"), item shows correctly selected value. But if multiple values are stored (example "RN,NA") no values are selected. Calling "organisationType.getValueAsString()" shows correct values both times.
Editing the data works fine, the only problem is that multiple values are not visible upon populating the form (see attachment).
SelectItem config:
Mentioned SelectItem is placed in DynamicForm, and form is populated by calling "form.editRecord(record);"
In case that only one value is stored in "organizationType" field (example "RN"), item shows correctly selected value. But if multiple values are stored (example "RN,NA") no values are selected. Calling "organisationType.getValueAsString()" shows correct values both times.
Editing the data works fine, the only problem is that multiple values are not visible upon populating the form (see attachment).
SelectItem config:
Code:
organisationType = new SelectItem("organisationType");
organisationType.setMultiple(true);
organisationType.setMultipleAppearance(MultipleAppearance.GRID);
organisationType.setWidth(425);
organisationType.setHeight(210);
organisationType.setMultipleValueSeparator(",");
organisationType.setValueMap(organisationTypesList);