When you have an editable grid, something in the most recent version is requiring the parameterMap function to be present, even if it does nothing. My code is copied below, and if I comment out parameterMap and try to submit batch changes, I get the following error:
Uncaught TypeError: Cannot read property 'field' of undefined
var contactData = new kendo.data.DataSource({
transport: {
read: {
url: baseUrl + "/contact",
dataType: 'json'
},
update: {
url: baseUrl + "/contact/update",
type: "POST"
},
destroy: {
url: baseUrl + "/contact/delete",
type: "POST"
},
create: {
url: baseUrl + "/contact/create",
type: "POST"
},
parameterMap: function(options, operation) {}
},
batch: true,
schema: {
model: contactModel
},
requestStart: function(e) {
//console.log(e);
},
error: function(e) {
alert("Error: " + e.errorThrown);
}
});
Uncaught TypeError: Cannot read property 'field' of undefined
var contactData = new kendo.data.DataSource({
transport: {
read: {
url: baseUrl + "/contact",
dataType: 'json'
},
update: {
url: baseUrl + "/contact/update",
type: "POST"
},
destroy: {
url: baseUrl + "/contact/delete",
type: "POST"
},
create: {
url: baseUrl + "/contact/create",
type: "POST"
},
parameterMap: function(options, operation) {}
},
batch: true,
schema: {
model: contactModel
},
requestStart: function(e) {
//console.log(e);
},
error: function(e) {
alert("Error: " + e.errorThrown);
}
});