Hi,
A small problem I encountered when I switch to OData-v4 with scheduler.
I try to filter only the events that are visible in the scheduler control.
I Looks like to me that the parameterMap function is incorrect if the datasource is of type "odata-v4".
Found something like this kendo.data.transports.odata.parameterMap(options, type), but I'm still don't know how to add extra
filters. See code example for what I try to accomplish.
var schedulerDs = new kendo.data.SchedulerDataSource({
type: "odata-v4",
serverFiltering: true,
transport: {
read: {
url: function() {
return "../odata/SchedulerEvents";
},
dataType: "json"
},
parameterMap: function (options, operation) {
if (operation === "read") {
var result = {
start: scope.schedularVar.view().startDate(),
end: scope.schedularVar.view().endDate()
}
return kendo.stringify(result);
}
return kendo.stringify(options);
}
}