or
$.ajax({ url: .../getViewModel/, dataType: "json", success: function (JsonResult) { ... $("#grid").data("kendoGrid").dataSource.data(JsonResult.GridResults.GridData); ... } ...}$("#grid").data("kendoGrid").dataSource.data(JsonResult. GridResults.GridData); //ok$("# grid ").data("kendoGrid").dataSource.total(JsonResult.GridResults.GridTotalRecordCount); // do not worksvar grid = $("#grid").data("kendoGrid"); // okvar newDS = new kendo.data.DataSource({ data: JsonResult.GridResults.GridData , total: JsonResult.GridResults.GridTotalRecordCount}); grid.setDataSource(newDS);<table data-template="distractor-template" data-bind="source: distractors" style="width: 100%;"> <colgroup> <col width="50" /> <col width="50" /> <col /> </colgroup></table> <script id="distractor-template" type="text/x-kendo-template"> <tr> <td> <input type="checkbox" data-bind="checked: isCorrect" /> </td> <td> <span data-bind="text: letter"></span> </td> <td> <div data-distractor-content="true" contenteditable="true" data-bind="html: content"></div> </td> </tr></script><script> var initialDistractors = [ { letter: 'A', isCorrect: true, content: 'Number <strong>One</strong>' }, { letter: 'B', isCorrect: false, content: 'Number <strong>Two</strong>' }, { letter: 'C', isCorrect: false, content: 'Number <strong>Three</strong>' }, ]; var distractorsObject = { distractors: new kendo.data.ObservableArray(initialDistractors) }; //init kendo view model var viewModel = kendo.observable(distractorsObject); //bind kendo view model kendo.bind($('[' + config.containerAttrName + ']'), viewModel); var $distractorContents = $('[' + config.distractorContentAttrName + ']'); $distractorContents.kendoEditor({ tools: [ "bold", "italic", "underline", "createLink", "unlink", "insertImage" ] });</script>var people = new kendo.data.DataSource({ transport: { read: { type: 'GET', //url being set dynamically and works fine for the read dataType: 'json' }, create: { url: uri, //http://wwww.mysite.com/api/people type: 'POST', dataType: 'json' } } });//the call:// data structure on web api POST has same fields as below//the "add" is working locally but a POST is never made back to the remote web api// i have tried with and without the JSON.stringify people.add(JSON.stringify({FirstName: $("#bfname").val(), LastName: $("#blname").val(), Phone: $("#bphone").val(), Email: $("#bemail").val(), ShowId: showID, HostId: 1, DealerId: 1, Note:$("#bemail").val(), Photo: '', Id: -1}));