Hi,
I have created a selectItem with setMultiple as true on the listgrid filter. Whenever I select multiple values from the drop down, the data below gets filtered. Also, the comma separated values appear in the box above. But when we open the dropdown again, the first value in the dropdown appears selected. None of the actual values appar selected.
Example: Suppose I have A,B,C,D,E,F,G,H in the multi-select drop-down list. If I select the D and E then GWT automatically deselects D and E and Selects the first item in list i.e.; A. However the box on the filter grid is showing D,E. But in the drop-down shows A as selected.
ListGridField attr;
SelectItem hdwattr = new SelectItem();
DataSource hardwareAttrDS = DataSource.get(ATTRIBUTES_DS);
hdwattr.setSortField(0);
hdwattr.setDisplayField("printCode");
hdwattr.setValueField("printCode");
attr.setFilterOperator(OperatorId.IN_SET);
hdwattr.setMultiple(true);
hdwattr.setMultipleAppearance(MultipleAppearance.PICKLIST);
hdwattr.setShowAllOptions(true);
hdwattr.setPickListFilterCriteriaFunction(new FormItemCriteriaFunction() {
@Override
public Criteria getCriteria(FormItemFunctionContext itemContext) {
Criteria criteria = new Criteria();
criteria.addCriteria(IS_FROM_MAINTENANCE, true);
return criteria;
}
});
hdwattr.setAutoFetchData(false);
hdwattr.setAllowEmptyValue(true);
attr.setFilterEditorProperties(hdwattr);
I have created a selectItem with setMultiple as true on the listgrid filter. Whenever I select multiple values from the drop down, the data below gets filtered. Also, the comma separated values appear in the box above. But when we open the dropdown again, the first value in the dropdown appears selected. None of the actual values appar selected.
Example: Suppose I have A,B,C,D,E,F,G,H in the multi-select drop-down list. If I select the D and E then GWT automatically deselects D and E and Selects the first item in list i.e.; A. However the box on the filter grid is showing D,E. But in the drop-down shows A as selected.
ListGridField attr;
SelectItem hdwattr = new SelectItem();
DataSource hardwareAttrDS = DataSource.get(ATTRIBUTES_DS);
hdwattr.setSortField(0);
hdwattr.setDisplayField("printCode");
hdwattr.setValueField("printCode");
attr.setFilterOperator(OperatorId.IN_SET);
hdwattr.setMultiple(true);
hdwattr.setMultipleAppearance(MultipleAppearance.PICKLIST);
hdwattr.setShowAllOptions(true);
hdwattr.setPickListFilterCriteriaFunction(new FormItemCriteriaFunction() {
@Override
public Criteria getCriteria(FormItemFunctionContext itemContext) {
Criteria criteria = new Criteria();
criteria.addCriteria(IS_FROM_MAINTENANCE, true);
return criteria;
}
});
hdwattr.setAutoFetchData(false);
hdwattr.setAllowEmptyValue(true);
attr.setFilterEditorProperties(hdwattr);
Comment