An OData error occurs when using DataSource filtering with OData and DateTimeOffset. The error is caused due to the following statement
in the function toOdataFilter in the kendo.data.odata.js file where date values are formatted as datetime.
When I try to overwrite the default behavior in parameterMap
it results in HTTP Status 400. Whereas when I overwrite the 'datetime' quote in the original source file with 'datetimeoffset' everything works fine.
Is there any workarround available?
Thanks
Holger
format =
"datetime'{1:yyyy-MM-ddTHH:mm:ss}'"
;
in the function toOdataFilter in the kendo.data.odata.js file where date values are formatted as datetime.
When I try to overwrite the default behavior in parameterMap
parameterMap:
function
(data, type) {
var
result = kendo.data.transports.odata.parameterMap(data, type);
if
(result.$filter) {
result.$filter = result.$filter.replace(
'datetime'
,
'datetimeoffset'
);
}
return
result;
}
it results in HTTP Status 400. Whereas when I overwrite the 'datetime' quote in the original source file with 'datetimeoffset' everything works fine.
Is there any workarround available?
Thanks
Holger