asp.net web api - WebAPI Model Binding from JSON -


i creating application using durandal, webapi server. have kendoui grid displays data server correctly , functions until post or put methods called. here method: enter image description here

and can see that data binds ui (used data-bind extensibility in durandal change kendo bindings): enter image description here

then edit data in grid , passes changes inside request server can see in fiddler result: enter image description here

on server side cannot data passed client bind place parameter method on post or put. enter image description here

i realize couple different technologies troubleshoot (e.g. durandal, knockoutjs, kendo databinding, , webapi) think fundamentals working, data retrieved , bound ui , posted when changed, webapi endpoint cannot bind data.

how can passed "models" array bind through modelbinding structure in webapi?

update- here helpful jsfiddle gave me correct content-type add: http://jsfiddle.net/xhrrj/1/

new kendo.data.datasource({ transport: { read: { type: "post", url: "../cccs/service.svc/suppliersearch", contenttype: "application/json; charset=utf-8", datatype: 'json'...

this coming telerik forum here

it looks if mixing form-urlencoded json format - if lookat decoded string sending models= , urlencoded json objects follow.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -