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

How to create datetime range filter

5 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bulut
Top achievements
Rank 1
Bulut asked on 26 Oct 2018, 03:50 PM

How can I create datetime range filter. I saw some examples with date range in telerik forum but never seen a datetime range filter implementation.

 

here is my example dojo. 

 

I want to filter BirthDate field with range selection. IE. first range 10/9/1966 21:00 second one 11/9/1966 15:00

5 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 30 Oct 2018, 09:09 AM
Hi Bulut,

The Kendo grid supports up to two filter criteria by setting the column.filterable.extra configuration to true. Below you will find a modified version of the provided sample:


Please note that within the filterMenuInit handler the operators are set and the drop downs are hidden.


Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Bulut
Top achievements
Rank 1
answered on 30 Oct 2018, 04:15 PM
Thank you for dojo but filter function not working in Dojo. When I filter it returns empty result for grid.
0
Georgi
Telerik team
answered on 31 Oct 2018, 02:00 PM
Hello Bulut,

I apologize for the inconvenience, the issue is caused since the change event of the operators drop downs is not triggered and the default equals operator is used. Once the change event is triggered the correct operators are used.

Please refer to the updated version of the sample for better understanding:



Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Bulut
Top achievements
Rank 1
answered on 31 Oct 2018, 03:30 PM
It is ok :) Np. One final question. In filter area instead of 24 hour it is still showing 12 hours format. 
0
Accepted
Konstantin Dikov
Telerik team
answered on 02 Nov 2018, 12:28 PM
Hi Bulut,

Could you please try the following modification for the time/date format:
Hope this helps.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Bulut
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Bulut
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or