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

Problem with expandRow in case of Dynamic Children #42

Open
underhill84 opened this issue May 21, 2020 · 0 comments
Open

Problem with expandRow in case of Dynamic Children #42

underhill84 opened this issue May 21, 2020 · 0 comments

Comments

@underhill84
Copy link

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.

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