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

Is Equal to date filter not working

2 Answers 1810 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yanesh
Top achievements
Rank 1
Yanesh asked on 03 Jul 2017, 06:24 AM

Hi All,

          I am using kendo grid for reporting purpose. But in my report i am using one date column for filtering purpose. My problem is when i use isequal to date filter empty grid is showing.why ?. Actually data is available in model. I attached to file. Please look into that

2 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 04 Jul 2017, 02:02 PM
Hi,

Most probably the time part of the DateTime value does not match. You should bear in mind that when filtering date, the data source uses DateTime not only the date part. If you want to ignore the time part you can checkout the solution suggested here. Another approach would be to use a date time picker for filtering.

Regards,
Angel Petrov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Kojoe
Top achievements
Rank 1
answered on 05 Aug 2020, 07:42 PM
The answer to this is fairly simple. When setting your DateTime variable in your controller, simply use the ".Date" property. This will truncate the DateTime to consider only the Date portion.


DateTime DueDate => PublishDate.AddDays(29).Date;





Tags
Grid
Asked by
Yanesh
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Kojoe
Top achievements
Rank 1
Share this question
or