Hi,
I am trying to implement grid editing. Grid is using JSON web service as data source. Getting data works great, but when I try to save changes I get an error "The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml'; 'Json'. "
What should I do to enable updates using JSON web service?
Thanks,
Igor
I am trying to implement grid editing. Grid is using JSON web service as data source. Getting data works great, but when I try to save changes I get an error "The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml'; 'Json'. "
var dataSource = new kendo.data.DataSource({ severFiltering: false, serverPaging: true, pageSize: 15, batch: false, transport: { read: { url: crudServiceBaseUrl, dataType: "json" }, update: { url: crudServiceBaseUrl, type: 'PUT', dataType: "json" } }, schema: { data: "Data", total: "Count", model: { id: "ID", fields: { ID: { editable: false, nullable: false }, Name: { type: "string" }, Unit: { type: "string" } } } }});$("#grid").kendoGrid({ theme: "metro", dataSource: dataSource, scrollable: false, pageable: true, height: 400, toolbar: ["save", "cancel"], columns: ["ID", "Name", "Unit"], editable: true});What should I do to enable updates using JSON web service?
Thanks,
Igor