Declined
Last Updated: 17 Mar 2021 12:32 by ADMIN
Shawn
Created on: 16 Mar 2021 17:24
Category: UI for Blazor
Type: Bug Report
0
Telerik Date Filters not working

So the Date Filter is not working.

I believe this is because my data has Time with it, I couldn't find any help on how to ignore the time part in the date filter.


 <GridColumn Title="Date Visit" DisplayFormat="{0:D}" Field="DateOfVisit">
                    <Template>
                        <label class="gridLabel">Date Visit:</label>
                        @{
                            if ((context as Visit).DateOfVisit!= null)
                            {
                                @((context as Visit).DateOfVisit.Value.ToShortDateString())
                            }

                        }
                    </Template>
                </GridColumn>

2 comments
ADMIN
Svetoslav Dimitrov
Posted on: 17 Mar 2021 12:32

Hello again,

We have an open feature request for filtering the Grid by Date and Time. I have given your Vote for it and you can follow it to receive email notifications on status updates. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Svetoslav Dimitrov
Posted on: 17 Mar 2021 12:15

Hello Shawn,

You are correct that the Time portion is causing the filters on the Grid to seem not working. The milliseconds and seconds are hard to be matched exactly. The DateTime object provides a way to extract only the Date portion by using DateTime.Date.

That being said, this behavior is not entirely connected to the way the Grid filters the DateTime object but can be experienced with the Enumerable.Where method and I am marking this as "Declined".

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.