I have
When I hit "add new record", every record in the grid including the new one is sent to the server.
Is there a way to prevent this and only allow the newly added record to get POST'ed to the server?
Kind Regards
Andrew
kendoGrid({
dataSource : {
transport : {
create : {
url :
"http://testsite/rest/receipts.xml"
,
dataType :
"xml"
,
type :
"POST"
,
contentType :
"text/xml"
,
processData :
false
,
batch :
false
},
parameterMap :
function
(data, type) {
if
(type ===
"create"
) {
var
postxml =
'<reciept><id></id><tenant>'
;
postxml += data.tenant;
postxml +=
'</tenant>'
;
return
postxml;
}
}
}
When I hit "add new record", every record in the grid including the new one is sent to the server.
Is there a way to prevent this and only allow the newly added record to get POST'ed to the server?
Kind Regards
Andrew