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 default loading indicator could generate placeholders for the entire page size #798

Closed
Nysosis opened this issue Jul 12, 2024 · 1 comment · Fixed by #800
Closed
Assignees
Labels
area-grid bug Something isn't working

Comments

@Nysosis
Copy link

Nysosis commented Jul 12, 2024

Describe the bug

When using the Grid component, the default loading indicator currently generates only 5 placeholder rows. When have a page size larger than 5, and use the pagination to navigate to the next page of results then your content will bounce up and down.

If the loading indicator instead used the PageSize to determine the number of indicators to generate, chances are there should be little-to-none shifting of content on the page

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://demos.blazorbootstrap.com/grid/overview#server-side-filtering-paging-sorting
  2. Click on any of the pagination buttons
  3. See the content below the grid bounce up and down as it shrinks to 5 rows then grows to back 10

Expected behavior
Little to no movement when using pagination

Versions (please complete the following information):

  • BlazorBootstrap: 2.2.0, 3.0-preview2
@Nysosis
Copy link
Author

Nysosis commented Jul 12, 2024

Happy to raise a PR if agreed it's an issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grid bug Something isn't working
Projects
None yet
2 participants