Thanks,
that works well, just need to hook it all up now :-)
Announcement
Collapse
No announcement yet.
X
-
Use comboBoxProperties to customize the appearance of the comboBox.
Your attempt to setShowPickerIcon() applies to the MultiComboBoxItem as a whole, but it is already not showing a pickerIcon, only it's AutoChild "comboBox" is showing a pickerIcon.
Leave a comment:
-
Email Picker
Hi all,
I am trying to create a email picker form item the same as you get with outlook or gmail, where you type and it suggests email addresses and allows you to add multples.
From the showcase, this is a close fit...
http://www.smartclient.com/smartgwt/showcase/#multicombobox_category
All I need to do is replace the select box with an auto suggest item.
However I can not seem to get rid of the picker icon...
Is this possible, or anyone have a suggestion of a way to acheive this?Code:public class EmailPickerItem extends MultiComboBoxItem { public EmailPickerItem() { setup(); } public EmailPickerItem(String name) { super(name); setup(); } public EmailPickerItem(String name, String title) { super(name, title); setup(); } private void setup() { setLayoutStyle(MultiComboBoxLayoutStyle.FLOW); setShowIcons(false); setShowPickerIcon(false); setOptionCriteria(new Criteria()); setOptionDataSource(AutoSuggestDS.getInstance("User", "emailAddress", AutoSuggestDS.AUTO_SUGGEST_TYPE.ANY_WORDS)); setDisplayField(AutoSuggestValueDto.VALUE); setValueField(AutoSuggestValueDto.VALUE); } }
Thanks,
DaleTags: None
Leave a comment: