Can't send through parameters, or pick up JSONP format?

1 posts, 0 answers
  1. Chris
    Chris avatar
    38 posts
    Member since:
    Feb 2012

    Posted 31 Aug 2012 Link to this post

    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{
         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) };

    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?

    Sorry, ignore this, I didn't have my parameters in the read: {} array.
Back to Top