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

[Solved] Grid date filter supporting two digit year?

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 12 Feb 2015, 05:14 PM
Hi, is there anyway to force the grid date filter to handle two digit year?  For example if user types in "1/1/11", the filter just sits there while the RadGrid filter would convert to "1/1/2011".  I was trying to hack the onchange events to force this behavior which worked fine when field lost focus via tab key or click, but had issues once ENTER key was used.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 16 Feb 2015, 04:40 PM
Hello Bob,

Here is an example that shows the format in question:

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

Notice however that it might not meet your needs, because you still need to select individual date from that month. And the filter will work against this concrete day. So if you pick April it will then compare dates in the Grid with the 1st of April 12:00 AM date. Sadly you cannot change this behavior.

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
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or