I have following configuration for date picker filter above the column.
if(value.filterable.cell.dataTextField == "creationTime") {
preparedGridColumnItem.filterable = {
cell: {
operator: "eq",
template: function (arg) {
arg.element.kendoDateTimePicker({
format: "dd.MM.yyyy",
change: function (){
console.log("Change :: " + kendo.toString(this.value(), 'd'));
var timestamp = moment(this.value()).unix();
console.log(timestamp);
return timestamp;
}
});
}
}
}
}
Problem is that selected value is send in filter request as non-timestamp value.It means:
"filter": {
"logic": "and",
"filters": [
{
"operator": "eq",
**"value": "Wed Apr 15 2015 00:00:00 GMT+0200 (CEST)",**
"field": "creationTime"
}
]
}
How can i change selected value to timestamp and how to pass this value to request?
Many thanks for any help.