Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Special Values for SelectItem's with setMultiple(true)

    Hi,

    I have a SelectItem with...

    Code:
    fieldsSelect.setMultiple(true);                            fieldsSelect.setMultipleAppearance(MultipleAppearance.PICKLIST);
    And I have some special values....

    Code:
    LinkedHashMap<String, String> specialValuesMap = new LinkedHashMap<String, String>();
    specialValuesMap.put(NEW_FIELD_OPTION, "Add New Field");
    specialValuesMap.put(CREATE_FIELD_OPTION, "Create as Task Field");
    fieldsSelect.setSpecialValues(specialValuesMap);
    fieldsSelect.setSeparateSpecialValues(true);
    When setMultiple is set to true, the special values do not appear, is this the desired behavior or is this a bug? If it doesn't work I'll have to place some picker icons on the box instead but I'd rather use the special values.

    Thanks,
    Dale

    GWT : 2.7
    SmartGWT Version : 5.0p
    SmartGWT Build Date : 19/03/2015 10:13

    #2
    SelectItem.specialValues are not supported in conjunction with SelectItem.multiple being set to true.

    We've updated the documentation to make this more obvious in the future - apologies for any inconvenience on this.

    Regards
    Isomorphic Software

    Comment

    Working...
    X