I have my grid working well, including popup editing. When I make an update from the grid, the update url fires. What I need to know is how to parse the data sent by the Kendo grid to "donorUpdateJson.cshmtl". I am using Microsoft Web 2.0 Razor as the platform. I would like the data to arrive at the server and parse it with QueryString (or some other method) but I don't know what the data looks like and could not find any examples. Thank you
Here is my datasource:
Here is my datasource:
var ds = new kendo.data.DataSource({ transport: { read: { url: "donorReadJson.cshtml", dataType: "json", type: "POST" }, update: { url: "donorUpdateJson.cshtml?" , dataType: "json", contentType: "application/json", type: "POST", data: { donorId: $("#input").val(), firstname: $("#input").val(), lastname: $("#input").val(), homephone: $("#input").val(), workphone: $("#input").val(), cellphone: $("#input").val(), email: $("#input").val() } }, destroy: { url: "/orders/destroy", data: { donorId: $("#input").val() }, }, parameterMap: function (options, operation) { if (operation != "read") { return { models: JSON.stringify(options.models) }; } } }, schema: { model: { id: "donorID", fields: { donorID: { type: "number", editable: false, }, title: { type: "string" }, firstname: { type: "string", validation: { required: true } }, middlename: { type: "string" }, lastname: { type: "string", validation: { required: true } }, address: { type: "string" }, city: { type: "string" }, state: { type: "string" }, zipcode: { type: "string" }, homephone: { type: "string" }, workphone: { type: "string" }, cellphone: { type: "string" }, email: { type: "string" } }, }, }, pageSize: 10, }); $("#grid").kendoGrid({ dataSource: ds, autoBind: true, filterable: false, resizable: true, sortable: true, scrollable: false, pageable: {input: true, numeric: false }, columns: [ { field: "firstname", title: "First Name" }, { field: "lastname", title: "Last Name" }, { field: "address", title: "Address", hidden: true }, { field: "city", title: "City", hidden: true }, { field: "state", title: "State", hidden: true }, { field: "zipcode", title: "Zip", hidden: true }, { field: "homephone", title: "Home" }, { field: "workphone", title: "Work" }, { field: "cellphone", title: "Cell" }, { field: "email", title: "Email" }, { command: ["edit", "destroy"], title: " ", width: "200px" }], editable: "popup" }); });</script>