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

Filter Row - Date with only two year format

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 11 Feb 2015, 03:40 PM
Hi, I am using the Filter Row.  In the date filter, the filter will only work if user puts in full four digit year and not just the last two ("1/1/2014" works, "1/1/14" doesn't).  In the Telerik RadGrid for WebForms, the two-digit format works.  Is there anyway to enable this in Kendo?

Additionally, the demo below doesn't appear to work for the date filter when tabbing off the date input with a valid date input.
http://demos.telerik.com/aspnet-mvc/grid/filter-row
Steps to reproduce: type in 7/3/1996 for "Order Date", tab off field, all rows disappear even though many have that date

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 13 Feb 2015, 10:04 AM
Hi Bob,

This happens because of the default parseFormats option. In the current scenario I would suggest using the filterable.cell.template option to initialize a DatePicker with custom parseFormats of your choice.

Regards,
Alexander Popov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
 
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or