Skip to content
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

[Grid] Switching between paging and virtual scrolling configs causes styling issues #4452

Open
mbechev opened this issue Nov 11, 2024 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Nov 11, 2024

Description

If we configure the Grid to support either paging or virtual scrolling, switching between the configurations causes incorrect height.

A possible workaround is to rerender the component by hiding and showing it with ngIf:
https://stackblitz.com/edit/angular-bpwxra-8xzhuz

Steps To Reproduce

  1. Switch to virtual scrolling.
  2. Scroll the content to trigger pageChange event.
  3. Switch back to paging and notice the blank Grid. Scroll to the bottom and see the paging records.

https://stackblitz.com/edit/angular-bpwxra-cehyvh

Screenshots or video

Screen.Recording.2024-11-11.at.15.20.47.mov

Actual Behavior

The Grid cannot correctly calculate its height when switching from virtualized content.

Expected Behavior

The Grid needs to correctly show the page data without the excessive blank space shown in the video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant