Announcement

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

    ListGrid FilterEditor question

    I have a ListGrid where one of the fields is a SelectItem which I have set an optiondatasource with the valid values.
    Code:
     
    	    DataSourceField widField = new DataSourceTextField("widgets", "WIDGETS");
    	    widField.setRequired(Boolean.valueOf(false));
    	    widField.setLength(Integer.valueOf(18));
    	    SelectItem si = new SelectItem();
    	    WidgetsDataSource widds = new WidgetsDataSource();
    	    si.setOptionDataSource(widds);
    	    si.setValueField("key_field");
    	    platField.setEditorType(si);
    	    addField(widField);
    If I make the Listgrid editable the selectitem within the grid will have all of the valid values from the WidgetsDataSource. If I enable the filtereditor, the filterbar will not have any values in the selectitem.

    How can I get the filterbar to have the valid values in the selectitem?

    I'm using SmartGWT latest release and I tried the daily build.

    #2
    Any ideas? I'm new to smartgwt and figure I'm doing something incorrectly. I can provide more information if needed.

    I initially had a DataSourceEnumField with a setValueMap, but the values were static. Those values would show up in the filterbar.

    Thanks for any help or pointing me in the right direction...

    Comment

    Working...
    X