Announcement

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

  • ellisd5
    replied
    Awesome, that's worked

    Leave a comment:


  • Blama
    replied
    Hi ellisd5,

    I had the same problem. See this thread for resolution.

    Best regards
    Blama

    Leave a comment:


  • ellisd5
    started a topic Auto Suggest Form Item has no right border

    Auto Suggest Form Item has no right border

    Hi,

    I have a custom widget which I use to provide auto suggest text fields. I've had this widget for years but at some point over last year years the right border has disapeared. So My code looks like this, pretty simple...

    Code:
    /**
     * Form item to provide an auto suggest text box
     *
     * @author dale.ellis
     * @since 30/06/11
     */
    public class AutoSuggestItem extends ComboBoxItem {
    
        public AutoSuggestItem() {
            setup();
        }
    
        public AutoSuggestItem(String name, String title) {
            super(name, title);
            setup();
        }
    
        private void setup() {
            setType("comboBox");
            setShowPickerIcon(false);
            setCompleteOnTab(true);
            setHideEmptyPickList(true);
    
            setOptionCriteria(new Criteria());
    
            setDisplayField(AutoSuggestValueDto.VALUE);
            setValueField(AutoSuggestValueDto.VALUE);
        }
    
        public void addCriteria(String name, Object value) {
            getOptionCriteria().addCriteria(name, value);
        }
    
    }
    I think I posted on this forum at the time and got guidance that the way to provide a auto suggest widget is to basically have a combobox with the picket icon. The trouble is, without the picker icon, the widget has no right border...

    Click image for larger version

Name:	SmartGWT AutoSuggest Border Issue.png
Views:	136
Size:	4.0 KB
ID:	241379

    I don't believe this has always been the case, I think this used to work once, but it's not a newly introduced issue. Is there a problem with my code, is there a different/better way to d this now or is it an issue?
Working...
X