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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -