"Object doesn't support property or method 'call'".
I am getting the above error when I try to call the sync method on the DataSource (Kendo UI Complete v2012.3.1315).
I am using the helper functions from Remco's post here:
http://www.kendoui.com/forums/framework/data-source/sharepoint-2010-datasource.aspx
I am getting the above error when I try to call the sync method on the DataSource (Kendo UI Complete v2012.3.1315).
I am using the helper functions from Remco's post here:
http://www.kendoui.com/forums/framework/data-source/sharepoint-2010-datasource.aspx
forecastDataSource =
new
kendo.data.DataSource({
batch:
true
,
schema: {
id:
"Id"
,
model: {
fields: {
Year: { type:
"number"
},
Quantity: { type:
"number"
}
}
}
},
type:
"odata"
,
transport: {
read:
function
(options) {
var
url = forecastReadUrl;
read(url).done(options.success).fail(options.error);
},
update:
function
(options) {
requestBatchUpdate(options.data.models,
"PAR_Forecast({0})"
).done(options.success).fail(options.error);
}
},
error:
function
(e) {
com.showInfoError(
"Error: "
,
"Unable to get data for forecast. "
+ e.errorThrown);
},
requestStart:
function
(e) {
// handle event
alert(
"start"
);
},
requestEnd:
function
(e) {
}
});