In my kendo grid I want to change the date format in filter
Ex: 1/30/2015 to Jan 30, 2015
I already change the date format of Start Date
field: "StartDate",
title: "Start Date",
width: 30,
format: "{0:MMM dd, yyyy}",
parseFormats: "{0:MM/dd/yyyy}",
headerTemplate: '<label for="check-all"><b>Start Date</b></label>',
headerAttributes: { style: "text-align: center;" },
attributes: { style: "text-align:center !important;padding-right: 25px;" }
Code in my filterable
filterable: {
extra: false,
operators: {
string: {
startswith: "Starts with",
eq: "Is equal to"
}
}
},
For screenshot see this
Thanks
You should define
filterable.ui
as a function where you create theDatePicker
and set the desiredformat
:Check the following snippet:
The provided solution works fine with default 'Menu filters' But not working for filterable: {mode: "row"}. In that case you should use template.
I got this response from Telerik's support for KendoUI Professional 2016.3.1118. Add this to your grid: