jQWidgets Forums

jQuery UI Widgets Forums TreeGrid expandall take too much time

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 4 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • expandall take too much time #114667

    qx5
    Participant

    $(“#treegrid”).jqxTreeGrid(‘beginUpdate’);
    $(“#treegrid”).jqxTreeGrid(‘expandAll’);
    $(“#treegrid”).jqxTreeGrid(‘endUpdate’);

    I have 200 pieces of non paged data, with parent-child relationship.
    The treegrid has about 20 columns.
    I want the treegrid to expandAll by default, so I use this method, But it took too long.
    A single jqxtreegrid takes about seven seconds.

    I can’t use paging because of demand.
    How can I speed up the treegrid?

    I try to use setTimeout to call ExpandAll, but the page will jam for several seconds. Is there any way to make ExpandAll execute asynchronously

    My English is not good, but I would like to express my sincere thanks to you

    expandall take too much time #114676

    Hristo
    Participant

    Hello qx5,

    You could try to use another approach.
    As you mentioned you want all records to be expanded then you could set the expanded member for these specific records.
    Please, take a look at this demo:
    http://jsfiddle.net/jqwidgets/KB495/
    Also, for this purpose, you could use the beforeLoadComplete callback of the DataAdapter options.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.