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:
and can see that data binds ui (used data-bind extensibility in durandal change kendo bindings):
then edit data in grid , passes changes inside request server can see in fiddler result:
on server side cannot data passed client bind place parameter method on post or put.
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
Post a Comment