Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

AddNode expands all level 1 nodes #109

@jordib123

Description

@jordib123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions