This is a migrated thread and some comments may be shown as answers.

Load treeview from URL

1 Answer 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 15 Jul 2014, 10:22 PM
I've put the following into your sample remote-data-binding.html:

<script>
$.getJSON(http://localhost:60084/....., function (data) {
tree = $("#treeview").kendoTreeView({
dataSource: kendo.observableHierarchy(data)
}).data("kendoTreeView");
});

</script>

Everything else untouched. When I refresh, the browser won't even try to access the url.
I also put some json in a local file, using id, text and items tags on my data, exactly as you advised in http://stackoverflow.com/questions/13286874/kendo-ui-treeview-and-json
if I use the file name instead of the url the page seems to access the file, but the tree is not loaded.

What am I missing?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Jul 2014, 09:07 AM
Hello Alex,

If the browser does not make any request, it appears that this is not connected to Kendo UI. Does it make a request once you remove the TreeView? Please check for any JS errors on the page. If you have directly pasted the code snippet, you need to add quotes around the URL.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or