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

treelist filter date column filter "is equal to" not working

1 Answer 126 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Panda
Top achievements
Rank 1
Panda asked on 23 Mar 2015, 07:20 AM
hi,
i'm trying to filter a date column in kendo treelist.
whenever i try to filter the date column using "is equal to" the result will always return empty

here is the example in telerik dojo
http://dojo.telerik.com/iROBU

try to filter the date using "is equal to", for example "is equal to March 23 , 2015" the result will always return empty even though the record do exist.
however if i chose "is after March 23 , 2015", the "March 23, 2015" record is displayed.
am i missing something?
is there a way to fix this?

thanks

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 25 Mar 2015, 07:49 AM
Hello Panda,

Comment your formatting that you have applied to the column and see that the date that you have provided for that last leaf record inside the TreeList has a time part something like 10:00PM. Keep in mind that when "is equal to" is used, the dataSource compares the two dates and their number representation, which means if the time is different they wont be equal.

I modified your example to change the date of the last record so its time part is 12:00 AM.

http://dojo.telerik.com/@pesho/iYuca/2

Try to filter the date by 18/03/2015 and see the record will be shown in the TreeList.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeList
Asked by
Panda
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or