Announcement

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

  • ellisd5
    replied
    Thanks,

    that works well, just need to hook it all up now :-)

    Leave a comment:


  • Isomorphic
    replied
    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:


  • ellisd5
    started a topic Email Picker

    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...

    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);
        }
    }
    Is this possible, or anyone have a suggestion of a way to acheive this?

    Thanks,
    Dale
Working...
X