I am testing a REST call from my server to load a Data Source, and my REST service returns the JSON data like this:
This has been okay for some other frameworks I'm testing, with the use of a "root" setting that tells the datasource to grab the JSON object that is "person".
Here is my Kendo code:
Is there anything I can do differently to have the Kendo Data Source load the JSON I currently have?
{"person":[{"address":"Address1","name":"Person1"},{"address":"Address2","name":"Person2"},{"address":"Address3","name":"Person3"}]}This has been okay for some other frameworks I'm testing, with the use of a "root" setting that tells the datasource to grab the JSON object that is "person".
Here is my Kendo code:
$(document).ready(function() { $("#grid").kendoGrid({ dataSource: { transport: { read: { url: myURLFunc(), dataType: "json" } }, schema: { model: { fields: { name: {}, address: {} } } } }, height: 250, sortable: true, columns: [ { field: "name", title: "Person" }, { field: "address", title: "Address" } ] });});Is there anything I can do differently to have the Kendo Data Source load the JSON I currently have?