I'm noticing some strange behavior on datasource CRUD operation when sync() gets called.
I've a transport with this configurations:
however, when I add a new item with the datasource.add() method and call sync(), Create gets called only if I set the id: 0. With any other number Create doesn't get called. I've track the XHR object from the browser developer tools and I can also verify this by setting parameterMap: function(operation, options) { alert(operation); }
Any clue?
I've a transport with this configurations:
new kendo.data.DataSource({ transport: { read: { url: "webservices/entities/read", dataType: "jsonp", jsonp: false, jsonpCallback: "callback" }, create: { url: "webservices/entities/create", type: "post", }, }, schema: { data: "items", total: "total", model: { id: "id", fields: { id: {type: "number"}, name: {type: "string"}, description: {type: "string"}, parent_id: {type: "number"} } }, serverFiltering: true, sort: {field: "name", dir:"asc"}, filter: {field: "parent_id", operator: "eq", value: parent_id}
});however, when I add a new item with the datasource.add() method and call sync(), Create gets called only if I set the id: 0. With any other number Create doesn't get called. I've track the XHR object from the browser developer tools and I can also verify this by setting parameterMap: function(operation, options) { alert(operation); }
Any clue?