0
votes

We are attempting to implement the Kendo UI scheduler and would prefer it to make a POST request to our backend for create and update events. The documentation indicates that you should be able to specify a type on the datasource transport to change type type of request being made. For example:

read: {
    url: "http://10.211.55.8/api/schedule/tasks",
    dataType: "jsonp",
    type: "POST"
}

The default examples on Keno's site all exclude the type parameter but the documentation states this should work.

Here is a plunkr exmaple we are playing with: http://plnkr.co/edit/de6gGLuIelmbG2SglpBW?p=preview

If you monitor the tasks and create operation network requests you will see they are still being done via GET rather than a POST despite the type:'POST' option in the transport definition.

2

2 Answers

1
votes

Actually the documentation says that it should not work. It says:

JSONP and type disclaimer

So for JSONP dataType only GET is supported.

You might also consider this very interesting and illustrative.

0
votes

Figured it out. DataType cannot be "jsonp" for a POST.