Questions tagged [angular-cdk-virtual-scroll]

116 questions
3
votes
1 answer

Angular virtual scroll not working correctly for nested for loop

The Angular Material cdk-virtual-scroll-viewport property is not working correctly for nested *cdkVirtualFor or *ngFor. The viewport is split into two and the scroll does not work as expected. Please assist in listing in viewport with parent and…
3
votes
0 answers

cdk-virtual-scroll-viewport for table with does not show the search results correctly
I was trying to use the virtual scroll option for a table with large data size. when I used just it shows correctly with scroll bar. But Since want to enable search i have used "table datatable". but it is not showing search results correctly.…
Raghu Vallikkat
  • 365
  • 5
  • 16
3
votes
1 answer

CDK Infinite scroll end checking

im trying to implement infinite scroll for loading items on to the list dynamically when user scrolls down the list, but when i access the end and total , it is coming as same, i need to check if the last item is reached and then append new items to…
3
votes
1 answer

Angular virtual scroll reset to top

In my Angular app, I'm using the Virtual Scroll from the Angular cdk. This is my Component's template:
2
votes
1 answer

How to use cdk-virtual-scroll with ngx-infinite-scroll

I've upgraded my Angular project dependencies: @angular/core: ^14.2.9 @angular/cdk: ^14.2.9 @angular/material: ^14.2.6 ngx-infinite-scroll: ~14.0.1 And after that, the infinite scroll (with virtualization) stopped working. What I observed is that…
2
votes
0 answers

cdk-virtual-scroll-viewport messes up scrolling

I have faced similar problem like this one https://github.com/angular/components/issues/16330#issuecomment-514591282 , but it happened not only while scrolling but when I tried filtering data. I used templateCacheSize: 0 and it solved the problem…
2
votes
1 answer

Angular cdk-virtual-scroll-viewport not taking max height until screen is resized

TLDR: have a list of items that need to be in a virtual scroll. It works fine, but only takes up ~30% of the space available until the screen size is changed. (make the dev tools larger). On initial page load: After resizing the page: Here is a…
2
votes
0 answers

Angular - Horizontal virtual scrolling with multiple columns

I would like to build the attached functionality, where I have around 20k items. I have tried mat cdk virtual scroller, but it is not working as it provides a single column with a horizontal scroll. Note: Boxes in the design represent…
2
votes
0 answers

How to extend the CdkVirtualScrollViewport angular material component?

I currently have a use case where I would like to extend the CdkVirtualScrollViewport component so I could have access to its rendered template. The specific case is that the base template renders a
2
votes
0 answers

Setting number of items for cdk-virtual-scroll-viewport

I have found a number of tutorials for using the cdk-virtual-scroll-viewport, but there is one thing missing from every single tutorial I have found so far: how do I tell the viewport how many items are in my list? I have implemented this using a…
Trevortni
  • 688
  • 8
  • 23
2
votes
1 answer

Angular Virtual Scroll Jumps around

I am using Angular Material Virtual scroll, the items get loaded correctly into the DOM, but while scrolling it happens that it jumps around and automatically jumps to the end.
2
votes
1 answer

Make sort work with CdkVirtualFor and templateCacheSize

I have implemented CdkVirtualForOf on a list in Angular, and set its templateCacheSize to 150 to improve perfomance. But when I sort my data and scroll, the cached templates screws up the items in the view. In other words: I sort the data, and the…
MartinJH
  • 2,590
  • 5
  • 36
  • 49
2
votes
1 answer

Angular CDKScrollable not firing

I cant seem to get the angular CdkScrollable to fire when creating my own div:
Sukh_Bains
  • 116
  • 7
2
votes
1 answer

Angular Virtual scroll performance issue on overriding scrollbar styles

I'm using cdk-virtual-scroll-viewport to apply virtual scrolling. Unfortunately, after applying styles to the scrollbar, scrolling is not smooth anymore. The native (right side) scrollbar is flashing but it's moving smoother. Tested on…
N Fard
  • 1,063
  • 1
  • 15
  • 33
2
votes
1 answer

Virtual Scroll - enabled on condition

I'm working on big data tables and I need to have oportunity to set dynamic if I want to use virtual scroll or standard solution. On my prototype I used *ngIf and duplicated views for standard body and cdk virtual scroll vierport. Is there any…