-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
TurboTable with virtual scrolling: Problem with totalRecords #4979
Comments
Same issue here |
With DataTable it was possible to update |
Something new about this |
Same issue here. Without this feature I cannot migrate to TurboTable. In all projects totalRecords it's initialized dynamically when records and total of records are received from request. |
Duplicate of #5303 Came across the same issue and found out that totalRecords are not getting updated at first . Tried to set totalRecords via the table instance followed by its updateRecord method but it did not help. Finally did some hack to rerender the view based on a flag value as below In component
**setTimeout was the key for me , as the flag change needed some delay. This solution may not be idealistic , but it worked perfectly for me without any performance issue. |
I try to put dynamically totalRecords in my getData function and it doesn't seem to work with virtualscrolling. When I initialize it statically or set it to ngOnInit () it works. With paginator it also works.
The text was updated successfully, but these errors were encountered: