Hello,
I can't manage to set a filter editor criteria on a MiniDateRangeItem filter. Here is a sample code:
The filter editor is empty and listGrid.getFilterEditorCriteria() is null. What did I miss ?
Thank you.
I can't manage to set a filter editor criteria on a MiniDateRangeItem filter. Here is a sample code:
Code:
Date date = new Date(); Criterion crit1 = new Criterion("date", OperatorId.LESS_OR_EQUAL, date); Criterion crit2 = new Criterion("date", OperatorId.GREATER_OR_EQUAL, date); Criterion crit3 = new Criterion(OperatorId.AND, new Criterion[] { crit1, crit2 }); ListGrid listGrid = new ListGrid(); listGrid.setShowFilterEditor(true); GWT.create(BeanFactory.FormItemMetaFactory.class); ListGridField field = new ListGridField("date", "Date"); field.setFilterEditorType(MiniDateRangeItem.class); listGrid.setFields(field); listGrid.draw(); listGrid.setFilterEditorCriteria(crit3);
Thank you.
Comment