primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Virtual Scroll in tree does not work with expand all and collapse all

Open lblu12555 opened this issue 1 year ago • 2 comments

Your example with virtual scroll doesn't show expand all or collapse all. If you enable virtual scroll and use the same code for expand all or collapse all, https://stackblitz.com/edit/habzg8ts?file=src%2Fapp%2Ftree-controlled-demo.html the chevron will update but the tree nodes won't actually expand until you click on one of the items and then they'll all expand except for the one you just clicked and that one will collapse. Same for collapse - the chevrons will update but the tree nodes won't collapse until you click one of the items and then they'll all collapse except for the one you just clicked. So the solution to use virtual scroll with expand all / collapse all does not work. I also have the same experience where expanding all the tree nodes is much slower after upgrading to a newer version of PrimeNG.

Originally posted by @lblu12555 in #14762

lblu12555 avatar Aug 21 '25 00:08 lblu12555

This issue has been automatically marked as stale due to a lack of activity. If this issue is still relevant to you, please leave a comment so we can keep it open. We apologize for not being able to prioritize it sooner. If you have any new information or questions, please share them in your comment!

github-actions[bot] avatar Feb 17 '26 00:02 github-actions[bot]

Comment to keep this issue from becoming stale.

We are also experiencing this issue.

wcroteau avatar Mar 23 '26 18:03 wcroteau