Hi,
I just want to know how to post data using the parameterMap function in kendo scheduler, as what I understand the default type is "Get", for some reason I need to do a "Post" type, It seems that my code (see sample code below) does not work, and when I look into the posted data the result is always something like this ( f=%22somedata%22 ) Is there something wrong in my code?
I also try the code below as what I see in this link http://jsfiddle.net/Xhrrj/4/.. but it seems not working to me.. the result of the posted data is something like this ( f= somedata )...
Thanks,
Regards,
Jesson
I just want to know how to post data using the parameterMap function in kendo scheduler, as what I understand the default type is "Get", for some reason I need to do a "Post" type, It seems that my code (see sample code below) does not work, and when I look into the posted data the result is always something like this ( f=%22somedata%22 ) Is there something wrong in my code?
dataSource: {
transport: {
read: {
type: "POST",
url: "myurl",
dataType: "json",
contentType: "application/json; charset=utf-8"
},
parameterMap: function (options, operation) {
return { f: JSON.stringify("somedata") };
}
},
schema:
{
//some code here....
}
}
parameterMap: function (options, operation) {
$.extend({}, options, { f: "somedata" })
}
Thanks,
Regards,
Jesson