Skip to content

Does the tree support virtualization? #1178

Answered by waterplea
martypitt asked this question in Q&A
Discussion options

You must be logged in to vote

No, it doesn't support it, only lazy loading as shown in the example. Cdk virtual scroll will probably work for top level nodes, but it would be hard to calculate the height. You would need some custom scroll strategy. With OnPush components are pretty cheap, it's better to make infinite scroll rather than virtual, when you just load more items as you scroll and keep them in the DOM.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by martypitt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants