Hello
I got a datasource returning following:
and following code
I need to extract the ID from DataSource and have it assigned to the element, but not entirely sure how to to that. Available documentation is rather confusing...
I got a datasource returning following:
[ {"id":"1","text":"host1","spriteCssClass":"server"} {"id":"2","text":"host2","spriteCssClass":"server"}]and following code
$("#treeview-hosts").kendoTreeView({ dragAndDrop: true, dataSource: { transport: { read: { url: "/main/getEnvHosts", type: 'POST', data: '{"env":"'+env+'"}', } }, schema: { model: { id: "id" }, }, } });I need to extract the ID from DataSource and have it assigned to the element, but not entirely sure how to to that. Available documentation is rather confusing...