or
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(); }
},
[{
"eventID"
:
"1"
,
"name"
:
"test"
,
"time"
:
"12:00:00"
,
"category"
:
"####"
,
"subcategory"
:
"####"
,
"description"
:
"Event for testing purposes"
,
"locationID"
:
"1"
,
"picturePath"
:
"http:\/\/####\/~z3370257\/images\/1.jpg"
},{
"eventID"
:
"2"
,
"name"
:
"test2"
,
"time"
:
"13:00:00"
,
"category"
:
"####"
,
"subcategory"
:
"SEIT"
,
"description"
:
"Event for testing purposes2"
,
"locationID"
:
"1"
,
"picturePath"
:
"http:\/\/####\/~z3370257\/images\/1.jpg"
}]