jQWidgets Forums

jQuery UI Widgets Forums TreeGrid JqxTreeGrid collapse after ajax call

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JqxTreeGrid collapse after ajax call #114047

    ae50042
    Participant

    Hi,

    I have a problem using jqxTreeGrid, basically I render the first time the the jqxTreeGrid; as per requirements I need to refresh it every 10 sec with an Ajax call.

    The problem is that after every Ajax call, the tree collapse, there are any way to prevent this behaviour?

    Regards,
    Giorgio.

    JqxTreeGrid collapse after ajax call #114069

    Hristo
    Participant

    Hello Giorgio,

    You could handle this as you save the expanded items in one array and after the refresh expand them.
    But this could not be so efficient with many items when you refresh it every 10 seconds.
    In this case, you could try to provide the expanded records with the update of the source.
    Please, take a look at this example:
    http://jsfiddle.net/cvkxy9g2/

    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.