Large JSON file issue

7 posts, 0 answers
  1. Annie
    Annie avatar
    3 posts
    Member since:
    Sep 2013

    Posted 18 Apr 2014 Link to this post

    I have a XML with over 1k nodes. A JSON file i created off the nodes and loaded into kendo treeview. The treeview is not loading at all and the page times out. Any suggestion to help?

    $.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
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 21 Apr 2014 Link to this post

    Hello Annie,

    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
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Annie
    Annie avatar
    3 posts
    Member since:
    Sep 2013

    Posted 21 Apr 2014 in reply to Alex Gyoshev Link to this post

    Hey Alex,

    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. 
  5. Annie
    Annie avatar
    3 posts
    Member since:
    Sep 2013

    Posted 21 Apr 2014 in reply to Annie Link to this post

    http://jsfiddle.net/UTfV2/

    the above link is to a jsfiddle with the large json text used for the datasource. When I hit run, nothing shows up.
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Apr 2014 Link to this post

    Hello Annie,

    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
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. JFox
    JFox avatar
    2 posts
    Member since:
    May 2013

    Posted 21 Aug 2015 in reply to Alex Gyoshev Link to this post

    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

  8. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 25 Aug 2015 Link to this post

    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
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready