Hello,
I've found strange behaviour with SelectItem (multiple=true) used to filter data in ListGrid.
When I use simple Criteria it work fine, but when I change to AdvancedCriteria I receive warnings:
Why inSet operator is not valid to enum field with SelectItem?
It was some time ago.
Tested on SmartGWT 12.0p 2018-8-31
Here is standalone test case with datasource from showcase:
Best regards
I've found strange behaviour with SelectItem (multiple=true) used to filter data in ListGrid.
When I use simple Criteria it work fine, but when I change to AdvancedCriteria I receive warnings:
Code:
MR9:WARN:DataSource:worldDS:Operator inSet is not valid for field continent. Continuing anyway.
It was some time ago.
Tested on SmartGWT 12.0p 2018-8-31
Here is standalone test case with datasource from showcase:
Code:
ListGrid listGrid = new ListGrid(); listGrid.setWidth100(); listGrid.setHeight100(); listGrid.setDataSource(WorldXmlDS.getInstance()); listGrid.setShowFilterEditor(true); listGrid.setAutoFetchData(true); listGrid.setUseAllDataSourceFields(true); AdvancedCriteria criteria = new AdvancedCriteria(); criteria.addCriteria("area", OperatorId.GREATER_THAN, "100"); listGrid.setCriteria(criteria); ListGridField field = new ListGridField("continent", 120); field.setFilterOnKeypress(true); SelectItem filterStatus = new SelectItem(); filterStatus.setMultiple(true); filterStatus.setOperator(OperatorId.IN_SET); field.setFilterEditorProperties(filterStatus); listGrid.setFields(field); this.addChild(listGrid);
Comment