Hi
Trying to get the date filters working on my grid. My dates are returning via an API call - all the dates are in ISO date format.
I've implemented the GridCell as follows but noted that formatDate returns a string rather than a date - is this correct?
class KendoGridDdateCell extends GridCell{
public render() {
var value = formatDate(new Date( this.props.dataItem[this.props.field], "d")
return (
<
td
>
{value}
</
td
>
);
}
}
Also on the grid itself after turning on the date filters for the cell the
<
Column
field
=
"fields.myDateFild"
title
=
"date"
filter
=
"date"
cell={KendoGridDdateCell}/>
The Filter itself always shows Month/Day/year - how can we make the filter show Day/Month/Year? Without this the dates filter wont work.
Any help or pointers on this would be fantastic.