I know I'm missing something here, I have to be, although I've had the issue before and never got around it. What I'm doing is:
var ds = new kendo.data.DataSource({
transport: {
read: "http://localhost/HOLService/HOLService.svc/GetFiles",
dataType: "jsonp",
data: {
roleId: function() { return 1; }
}
},
parameterMap: function (data, operation) {
if (operation != "read") {
return { jsonData: kendo.stringify(data.models) };
}
}
});
ds.read();
What this does is send a call to "http://localhost/HOLService/HOLService.svc/GetFiles", but there's no roleId parameter, or callback required from JSONP.
Can anyone see what I'm missing here?
Update:
Sorry, ignore this, I didn't have my parameters in the read: {} array.
var ds = new kendo.data.DataSource({
transport: {
read: "http://localhost/HOLService/HOLService.svc/GetFiles",
dataType: "jsonp",
data: {
roleId: function() { return 1; }
}
},
parameterMap: function (data, operation) {
if (operation != "read") {
return { jsonData: kendo.stringify(data.models) };
}
}
});
ds.read();
What this does is send a call to "http://localhost/HOLService/HOLService.svc/GetFiles", but there's no roleId parameter, or callback required from JSONP.
Can anyone see what I'm missing here?
Update:
Sorry, ignore this, I didn't have my parameters in the read: {} array.