Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Special Values for SelectItem's with setMultiple(true)

$
0
0
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

Viewing all articles
Browse latest Browse all 4756

Trending Articles