Good afternoon,
I've used the following to get the date filter in my Grid to use the dd/MM/yyyy format:
columns.Bound(t => t.Datestamp).Title("Date").Format("{0:dd/MM/yyyy HH:mm:ss}").Filterable(f => f.UI("datestampFilter"));
function datestampFilter(element) {
element.kendoDatePicker({
format: "{0:dd/MM/yyyy}",
parseFormats: ["dd/MM/yyyy"]
});
}
This works but the class of the datepicker input is incorrect and, as as result, the button is not aligned right and the border of the input is darker:
It generates an input:
<input title="Value" data-bind="value:filters[0].value" class="" type="text" data-role="datepicker" role="combobox" aria-expanded="false" aria-haspopup="grid" autocomplete="off" aria-disabled="false" aria-readonly="false">
It's missing class="k-input-inner" which is what is generated when no formatting is applied to the date column.
Have I missed something else which is causing the slightly incorrect styling?
Kind regards,
Richard