[PR #883] [MERGED] RadzenDataList/RadzenGrid - Add Pager-Density Property #2373

Closed
opened 2026-01-29 18:18:32 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/883
Author: @msdevcode
Created: 3/29/2023
Status: Merged
Merged: 3/29/2023
Merged by: @enchev

Base: masterHead: feature/PagerDensity


📝 Commits (2)

  • 474ebb3 DataList/Grid - Add Pager-Density Property
  • 34a4578 DataGrid/DataList/Pager - Add Pager-Density tests

📊 Changes

8 files changed (+116 additions, -11 deletions)

View changed files

📝 Radzen.Blazor.Tests/DataGridTests.cs (+38 -0)
📝 Radzen.Blazor.Tests/DataListTests.cs (+34 -0)
📝 Radzen.Blazor.Tests/PagerTests.cs (+33 -0)
📝 Radzen.Blazor/PagedDataBoundComponent.cs (+6 -0)
📝 Radzen.Blazor/RadzenDataGrid.razor.cs (+0 -6)
📝 Radzen.Blazor/RadzenDataList.razor (+2 -2)
📝 Radzen.Blazor/RadzenGrid.razor (+2 -2)
📝 Radzen.Blazor/RadzenPager.razor.cs (+1 -1)

📄 Description

1:
I cut out the Density-Property of RadzenDataGrid and placed it into the base class "PagedDataBoundComponent.cs" of RadzenDataGrid, RadzenDataList and RazdenGrid.

With that change RadzenDataList and RadzenGrid inherit the Density-Property as well. The included RadzenPager can now be rendered differently.

In my opinion that should not be a breaking change because i didnt changed the Density-Propertyname.
Users of RadzenDataGrid should not be affected.

Maybe it would be more unified to call the Property "PagerDensity" like other properties in "PagedDataBoundComponent.cs" e.g.

public PagerPosition PagerPosition { get; set; } = PagerPosition.Bottom;
public HorizontalAlign PagerHorizontalAlign { get; set; } = HorizontalAlign.Justify;

but that would be a breaking change for users of RadzenDataGrid, i guess.

2:
Further more i added some tests of the Density-Property for RadzenDataGrid, RadzenDataList and RadzenPager.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/883 **Author:** [@msdevcode](https://github.com/msdevcode) **Created:** 3/29/2023 **Status:** ✅ Merged **Merged:** 3/29/2023 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `feature/PagerDensity` --- ### 📝 Commits (2) - [`474ebb3`](https://github.com/radzenhq/radzen-blazor/commit/474ebb328af441f091e78c2fd5f267b22ca7aca3) DataList/Grid - Add Pager-Density Property - [`34a4578`](https://github.com/radzenhq/radzen-blazor/commit/34a4578a5f6ac58f026c475e4ed678850ea950f8) DataGrid/DataList/Pager - Add Pager-Density tests ### 📊 Changes **8 files changed** (+116 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor.Tests/DataGridTests.cs` (+38 -0) 📝 `Radzen.Blazor.Tests/DataListTests.cs` (+34 -0) 📝 `Radzen.Blazor.Tests/PagerTests.cs` (+33 -0) 📝 `Radzen.Blazor/PagedDataBoundComponent.cs` (+6 -0) 📝 `Radzen.Blazor/RadzenDataGrid.razor.cs` (+0 -6) 📝 `Radzen.Blazor/RadzenDataList.razor` (+2 -2) 📝 `Radzen.Blazor/RadzenGrid.razor` (+2 -2) 📝 `Radzen.Blazor/RadzenPager.razor.cs` (+1 -1) </details> ### 📄 Description 1: I cut out the Density-Property of RadzenDataGrid and placed it into the base class "PagedDataBoundComponent.cs" of RadzenDataGrid, RadzenDataList and RazdenGrid. With that change RadzenDataList and RadzenGrid inherit the Density-Property as well. The included RadzenPager can now be rendered differently. In my opinion that should not be a breaking change because i didnt changed the Density-Propertyname. Users of RadzenDataGrid should not be affected. Maybe it would be more unified to call the Property "PagerDensity" like other properties in "PagedDataBoundComponent.cs" e.g. `public PagerPosition PagerPosition { get; set; } = PagerPosition.Bottom;` `public HorizontalAlign PagerHorizontalAlign { get; set; } = HorizontalAlign.Justify;` but that would be a breaking change for users of RadzenDataGrid, i guess. 2: Further more i added some tests of the Density-Property for RadzenDataGrid, RadzenDataList and RadzenPager. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:18:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2373