$.ajax({
dataType: "json",
url: "/EnrichmentConfiguration/GetTreeviewXsd",
data: { enrichmentConfigurationId: ecId.val() },
type: "GET",
success: function (data, textStatus, jqXHR) {
$("#treeview-xsd").kendoTreeView({
dataSource: data,
select: treeNodeSelected
});
},
error: function (jqXHR, textStatus, errorThrown) {
$("#error-treeview-xsd").show();
}
});
This is my jquery call
6 Answers, 1 is accepted
Can you please submit a sample page that shows the issue through the Kendo UI Dojo? The issue depends on the format of the JSON, so simply initializing the TreeView with sample data (without making the AJAX request) will be sufficient for us to reproduce it.
Regards,Alex Gyoshev
Telerik
http://trykendoui.telerik.com/AvOk
This is a sample created with one of our smaller sample datas. It works fine, as you can see.
https://www.dropbox.com/s/c8z0sawwc92lyjf/bigTest.json
This is a link to the large json file that is causing the timeout.
the above link is to a jsfiddle with the large json text used for the datasource. When I hit run, nothing shows up.
I am uncertain if such amount of data can be loaded in the browser without crashing it. As a general performance improvement, you can load each level on demand, so that only requested data by the user is rendered.
Regards,Alex Gyoshev
Telerik
Hi,
I'm facing with a similar issue, but in my case the data is on the client (i need to compute the JSON structure clientside). Is there any way to virtualize the dataset on client side (similar to your "Virtualization of local data" in grid demos)?
Tnx, J
Hello JFox,
There is no load on demand implementation with local data, at the moment. You can submit this as a feature request on UserVoice, so that it is considered for implementation in a future release.
Regards,
Kiril Nikolov
Telerik