You'll need to provide the data in a format supported by Kendo's DataSource, e.g. a JavaScript array; in case of a treeview, each object in the array will (at minimum) need to have a property containing the text to display (item.text
by default) and a property which contains an array of child nodes (item.items
by default).
You can either transform your data on the server-side, or on the client-side, but ultimately, you'll have to define how to interpret your data somewhere so the treeview widget can render it.
You can remap some of those fields using the Kendo TreeView configuration, e.g. the text field:
$("#treeview").kendoTreeView({
dataTextField: "Name",
dataSource: items
});
For others, you can use the schema model of your data source configuration (also see Model.define), or if you need additional logic to map your existing item properties, you can use schema.parse.