Skip to content

destroy tree structure #23

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

Open
PepaBosnis opened this issue Aug 13, 2016 · 2 comments
Open

destroy tree structure #23

PepaBosnis opened this issue Aug 13, 2016 · 2 comments

Comments

@PepaBosnis
Copy link

if I used the "destroy" method, and then I have one tree in re-creating the chart growing tree_id a new tree is not created correctly even if the data structure is fine and the same data when you first load the page displays fine ... I tried to destroy methods add ( this.store = [];) which prevents increase tree_id but the tree is still not created correctly ... I just see the root item only
I do not know what the cause yet.
2)
If I used "destroy" and not change data only do I change the settings for the tree then it can display correctly only if I removed and re-created DIV element into which the tree forms ... the reason is that it does not reset the starting position and the tree will be displayed outside of the image

@PepaBosnis
Copy link
Author

solved

  • To create the newly loaded data not enough to destroy tree .. it is necessary to remove the data from the "store" for the tree in TreeStore
  • Then you must reset the counter id in method "make" in JSONconfig

I am now able to dynamically generate trees from data loaded using AJAX methods from database without reloading the page

@danielismo
Copy link

Can you explain how u make this?
1.-Remove data from the store
2.- reset counter id in method make.

ThankS!!!

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