How do I reload the tree data via ajax and keep the tree expanded with ext-persist?

458 views
Skip to first unread message

hagen.so...@gmail.com

unread,
Sep 20, 2016, 8:07:23 AM9/20/16
to Fancytree Q&A
It seems, that the persistence extension for fancytree only works, if I reload the page with F5.

Is there a way to make it work on fancytree.reload()?

It just reloads with all folders closed (even if it is exactly the same data)

$.subscribe('refresh', () => {
this._fancyTree.reload(this.getSource());
});

mar10

unread,
Sep 22, 2016, 1:42:25 AM9/22/16
to Fancytree Q&A
Maybe you should open an issue on the project page to add a new 'apply' method to ext-persist, or to add an option to 'reload()'
Reply all
Reply to author
Forward
0 new messages