diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
134 stars 42 forks source link

Couldn't initialise the table with data #53

Closed rohitattaluri552 closed 2 years ago

rohitattaluri552 commented 3 years ago

Hi all,

I was trying to figure a way to implement virtual scroll and came here to use it.

Installed the plugin from Npm and tried fulfilling my requirement.

But at the initially stage it self, i couldn't assign my data to dataSource as show in the example.

FYI, here I'm attaching my code snippets screenshots as well. Any suggestions will be appreciated.

Screenshot 2021-01-15 at 7 03 35 PM Screenshot 2021-01-15 at 7 03 44 PM Screenshot 2021-01-15 at 7 06 44 PM
MiszczProgramowania commented 3 years ago

same issue i have

Elias177 commented 3 years ago

After hours of testing and changing stuff around. I finally fixed it.

Make sure you include ScrollingModule in your module imports

sushil1991 commented 2 years ago

I am also facing the same issue. When can we have a fix for it. I imported ScrollingModule also.

wellwind commented 2 years ago

Same issue here, after importing ScrollingModule can fix.

I think it should be added into document.

diprokon commented 2 years ago

This library is only to help cdk-virtual-scroll-viewport and mat-table to communicate properly. It is expected, that you configure those part properly. Also, there is a note about it in the documentation. Now I added the required modules names, so I hope it will helps