devextreme-angular icon indicating copy to clipboard operation
devextreme-angular copied to clipboard

[18.2] Filter Row for dataType="Date" returns wrong operator

Open brunoccsnasajon opened this issue 7 years ago • 1 comments

I'm trying to implement a custom implemetation of the filters on the back end, using loadOptions.Filter. When a column has dataType="Date", the filter returned to loadOptions is not the same selected by the user, ex.: equals becomes between, LessThan becomes GreaterOrEqualsTo, etc...

brunoccsnasajon avatar Feb 17 '19 15:02 brunoccsnasajon

Hi,

This is the expected behavior. The resulting filter expression is generated so that fractional dates are present in the filtered set. For example, if you select date = 2019/1/1, then all dates with non-zero time (2019/1/1 10:00:00) will be displayed.   If you need to customize the filter expression, modify it according to your requirements.   See also: A custom data source does not apply paging, filtering, sorting and grouping

AlexanderKovalenko avatar Feb 20 '19 13:02 AlexanderKovalenko