File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ namespace Microsoft.AspNetCore.Components.QuickGrid;
1010/// </summary>
1111public class PaginationState
1212{
13+ /// <summary>
14+ /// Whether or not to render empty rows to fill the view.
15+ /// </summary>
16+ public bool RenderFillerRows = true ;
17+
1318 /// <summary>
1419 /// Gets or sets the number of items on each page.
1520 /// </summary>
Original file line number Diff line number Diff line change 4949 // When pagination is enabled, by default ensure we render the exact number of expected rows per page,
5050 // even if there aren't enough data items. This avoids the layout jumping on the last page.
5151 // Consider making this optional.
52- if (Pagination is not null )
52+ if (Pagination is not null && Pagination . RenderFillerRows )
5353 {
5454 while (rowIndex ++ < initialRowIndex + Pagination .ItemsPerPage )
5555 {
You can’t perform that action at this time.
0 commit comments