Hi.
Today I've found problem with ListGrid's getFilterEditorCriteria() method
When ListGrid contains DataSourceField of type FieldType.DATE or FieldType.DATETIME then Criteria returned by method getFilterEditorCriteria() are strange.
returned criteria have keys - values:
operator - and
_constructor - AdvancedCriteria
criteria - [object Object]
fields causing problems are defined like that:
new DataSourceField("data_termin", FieldType.DATE, "Termin"),
new DataSourceField("data", FieldType.DATETIME, "Data"),
I use RestDataSource and JSON DataFormat:
RestDataSource s = new RestDataSource();
s.setDataFormat(DSDataFormat.JSON);
s.setDataURL(url2 + "?j=przet");
s.setFields(rd);
s.setClientOnly(false);
if ListGrid doesn't contain FieldType.DATE or FieldType.DATETIME fields everything is OK.
Can you tell me is it some sort of error or maybe I'm doing something wrong ?
Today I've found problem with ListGrid's getFilterEditorCriteria() method
When ListGrid contains DataSourceField of type FieldType.DATE or FieldType.DATETIME then Criteria returned by method getFilterEditorCriteria() are strange.
returned criteria have keys - values:
operator - and
_constructor - AdvancedCriteria
criteria - [object Object]
fields causing problems are defined like that:
new DataSourceField("data_termin", FieldType.DATE, "Termin"),
new DataSourceField("data", FieldType.DATETIME, "Data"),
I use RestDataSource and JSON DataFormat:
RestDataSource s = new RestDataSource();
s.setDataFormat(DSDataFormat.JSON);
s.setDataURL(url2 + "?j=przet");
s.setFields(rd);
s.setClientOnly(false);
if ListGrid doesn't contain FieldType.DATE or FieldType.DATETIME fields everything is OK.
Can you tell me is it some sort of error or maybe I'm doing something wrong ?
Comment