Hello,
I'm new to Kendo.
I'm trying to implement the following example:
http://demos.kendoui.com/web/grid/editing-inline.html
My server side code is ASP.Net
The problem is that while clicking new/update/delete inline options, i get a request to the server, to the relevant web method, however
no parameters are passed (the request object is empty).
Here is the client side code:
//////////////////////////////////////////////// Ready evet - Datasource
$(document).ready(function () {
var MydataSource = new kendo.data.DataSource({
transport: {
read: {
url: "HttpHandler.aspx/Line2AOIGetData",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
},
update: {
url: "HttpHandler.aspx/Line2AOIUpdate",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
},
destroy: {
url: "HttpHandler.aspx/Line2AOIDelete",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
},
create: {
url: "HttpHandler.aspx/Line2AOICreate",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: kendo.stringify(options.models) };
}
}
},
batch: false,
pageSize: 5,
schema: {
data: 'd',
model: {
id: "LineName",
fields: {
LineName: { editable: true, nullable: false, validation: { required: true} },
Equipmentname: { editable: true, nullable: false, validation: { required: true} }
}
}
}
});
//////////////////////////////////////////////// Grid
$("#theGrid").kendoGrid({
dataSource: MydataSource,
pageable: true,
toolbar: ["create"],
columns: [{ title: "Line", field: "LineName", width: "200px" },
{ title: "AOI Machine", field: "Equipmentname", width: "200px" },
{ command: ["edit", "destroy"], title: " ", width: "250px"}],
editable: "inline",
scrollable: false
});
});
Please advice.
Tnx