How can I use nested Json to populate Kendo UI grid?
问题 How can I populate Kendo UI grid with nested JSON. I mean my JSON is like var myJson: [{"oneType":[ {"id":1,"name":"John Doe"}, {"id":2,"name":"Don Joeh"} ]}, {"othertype":"working"}, {"otherstuff":"xyz"}] }]; and I want Kendo UI Grid with columns as Id, Name, OtherType and OtherStuff. Thanks in advance.! 回答1: For complex JSON structures, you might use schema.parse var grid = $("#grid").kendoGrid({ dataSource : { data : [ { "oneType": [ {"id": 1, "name": "John Doe"}, {"id": 2, "name": "Don