I'm using the following code for my transport options of a kendo grid
With the read option, Project { Id : 2 } is neatly added tot the JSON data that is created through the parametermap (just a JSON stringify return) but this is not the case with the update option, why? is this a bug?
I tried putting the adding of the project id in the parametermap but I can't seem to get that to work, any examples?
transport: { create: { // get the rid off of the model object that // kendo ui automatically passes to the url function url: function () { return "/project/creategebouw/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } }, complete: function () { onCreateGebouw(); }, }, read: { url: function () { return "/project/FindAllGebouwen/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } } }, update: { // get the rid off of the model object that // kendo ui automatically passes to the url function url: function () { return "/project/editgebouw/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } }, complete: function () { onGebouwUpdate(); } },I tried putting the adding of the project id in the parametermap but I can't seem to get that to work, any examples?