This is a migrated thread and some comments may be shown as answers.

[Solved] Datefilter lte work like lt

1 Answer 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
IT-Abteilung
Top achievements
Rank 1
IT-Abteilung asked on 28 Nov 2014, 08:47 AM
Hello everyone

We found another bug in the kendo grid.
The Operator "lte" in the Date-Filter work like "lt".

You can reproduce the issue in this fiddle:
http://jsfiddle.net/mesk1dx9/

Try to filter the date with "is before or equal to" 7/8/1996 an you only will get the first two entrys before 7/8/96, not the follwoing two who are at 7/8/96.
Is there a workaround now?

Greetings

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 Dec 2014, 08:10 AM
Hello Paul,

The issue you described occurs because the date field contains also information about the time. In JavaScript there is no Time object, the Date object contains information about both the date and time which is why the DataSource filters on both date and time.

In the example which you provided, the OrderDate field has a time part which is why the "equal to" part of the filter operator does not behave as expected. Please see the attached screen shot.

Does the date fields in your project contain time part? If not, you should not experience the same issue.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
IT-Abteilung
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or