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

AddNode expands all level 1 nodes #109

Open
jordib123 opened this issue Nov 16, 2019 · 0 comments
Open

AddNode expands all level 1 nodes #109

jordib123 opened this issue Nov 16, 2019 · 0 comments

Comments

@jordib123
Copy link

I have a treeview of top level nodes (see image 1), when clicking on a node, I do an AJAX request to obtain all child nodes of the clicked node and append them to the node using the AddNode function (see image 2). This works perfectly fine, however, when I collapse the node (see image 3) and add new children (obtained by AJAX using AddNode) to a different node, it automatically expands all top level nodes instead of only the parent node I just appended the children to (see image 4).

Image 1:
1_top_level_tree
Image 2:
2_AJAX_expand
Image 3:
3_collapse_node
Image 4:
4_expands_all_top_level_nodes

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

1 participant