This is a migrated thread and some comments may be shown as answers.

Kendo Grid update and Web API

1 Answer 324 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bart wagner
Top achievements
Rank 1
bart wagner asked on 16 Aug 2013, 10:29 PM
Hi,
I am following the example 
var crudServiceBaseUrl = "http://demos.kendoui.com/service",
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl + "/Products",
dataType: "jsonp"
},
update: {
url: crudServiceBaseUrl + "/Products/Update",
dataType: "jsonp"
},

However, when I am using my Web API address for update, it shows "Request Method:GET Status Code:405 Method Not Allowed". My Web api Update method is a HttpPost method. Any suggestions please??

-Nahid

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 20 Aug 2013, 12:16 PM
Hi Bart,

 
You can modify the request type using the "type" configuration option of the dataSource transport:


Also you can check this example which demonstrates how to bind the Grid to a Web ApiController.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
bart wagner
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or