Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using tree.reload() does not keep current expansion levels #89

Closed
srathbun opened this issue Nov 8, 2013 · 1 comment
Closed

Using tree.reload() does not keep current expansion levels #89

srathbun opened this issue Nov 8, 2013 · 1 comment
Milestone

Comments

@srathbun
Copy link

srathbun commented Nov 8, 2013

Since tree.reload passes in the current context to treeLoad, I had assumed that any currently expanded nodes would stay expanded. This does not happen.

Am I mistaken in that the current tree, which is part of the context, should contain this information? If so, can we add a flag to reload that allows for keeping the current selection expanded?

@mar10
Copy link
Owner

mar10 commented Nov 9, 2013

tree.reload uses the initial source by default, which often means that the original ajax request is issued again

This feature was added to deal with it, but the spec is not yet finalized (comments welcome).
https://github.com/mar10/fancytree/wiki/SpecPersistence

@mar10 mar10 closed this as completed Nov 9, 2013
@mar10 mar10 added this to the 2.0.0beta milestone May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants