Skip to content

Problem with expandRow in case of Dynamic Children #42

@underhill84

Description

@underhill84

I'm trying to expand automatically level 0 of my tree. After initial loading, I set data to the tree grid and try to expand the root node with expandRow(root.id). the expandable indicator change to expanded, but child data are not loaded. I've tried the same thing into your demo at that link https://debabratapatra.github.io/pages/angular-tree-grid/demo/#/dynamic_children
if you click on expandAll, you will have the same behaviour.

image

Looking at the image, I found that if we are in the root level, pathx have only one element, so the first If inside the for always avoid the following code
I've tried on my local .js file to fix this with let expanded_count = 0; , and works, but I'm not sure if can cause other problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions