RadzenDataList pageSize 10 don't work on loading #848

Closed
opened 2026-01-29 17:45:15 +00:00 by claunia · 0 comments
Owner

Originally created by @PeterOliverDev on GitHub (May 10, 2023).

Describe the bug
The RadzenDataList component does not want to display the first load if the PageSize attribute is 10.
You can try putting 8,9,11,12,20, it all works. But number 10 does not work.

To Reproduce

<RadzenDataList AllowVirtualization="false"
				LoadData="@LoadDataV2"
				WrapItems="true"
				Data="@_testsDto" TItem="TestDto"
				AllowPaging=true
				PageSize=10
				Count="@_totalRows2">
	<Template Context="test">
		<RadzenColumn Size="10" class="rz-p-3">
			<RadzenText TextStyle="TextStyle.H5" TagName="TagName.H5" class="rz-color-secondary">@(test.Name)</RadzenText>
			</RadzenColumn>
		</Template>
	</RadzenDataList>

	@code {
	public class TestDto
	{
		public string Name { get; set; } = default!;
	}

	private List<TestDto> _testsDto = new();
	private int _totalRows2;

	public async Task LoadDataV2(LoadDataArgs args)
	{
		_testsDto = new List<TestDto>
		{
			new TestDto
			{
				Name = "test1"
			},
			new TestDto
			{
				Name = "test2"
			},
			new TestDto
			{
				Name = "test3"
			}
		};

		_totalRows2 = 3;
	}
}

Expected behavior

I don't know if this can help you, but I noticed during my tests that the function defined in the LoadData attribute is not being called.

Screenshots
With PageSize=10 (It's empty)
image

With PageSize=11
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 113.0.5672.92

Additional context

if something is missing don't close the ticket before i reply. Let me answer. Thank you.

Originally created by @PeterOliverDev on GitHub (May 10, 2023). **Describe the bug** The RadzenDataList component does not want to display the first load if the PageSize attribute is 10. You can try putting 8,9,11,12,20, it all works. But number 10 does not work. **To Reproduce** ``` <RadzenDataList AllowVirtualization="false" LoadData="@LoadDataV2" WrapItems="true" Data="@_testsDto" TItem="TestDto" AllowPaging=true PageSize=10 Count="@_totalRows2"> <Template Context="test"> <RadzenColumn Size="10" class="rz-p-3"> <RadzenText TextStyle="TextStyle.H5" TagName="TagName.H5" class="rz-color-secondary">@(test.Name)</RadzenText> </RadzenColumn> </Template> </RadzenDataList> @code { public class TestDto { public string Name { get; set; } = default!; } private List<TestDto> _testsDto = new(); private int _totalRows2; public async Task LoadDataV2(LoadDataArgs args) { _testsDto = new List<TestDto> { new TestDto { Name = "test1" }, new TestDto { Name = "test2" }, new TestDto { Name = "test3" } }; _totalRows2 = 3; } } ``` **Expected behavior** I don't know if this can help you, but I noticed during my tests that the function defined in the LoadData attribute is not being called. **Screenshots** With PageSize=10 (It's empty) ![image](https://github.com/radzenhq/radzen-blazor/assets/133120114/febb0675-f8d0-44ed-b1a8-7db2814ffd03) With PageSize=11 ![image](https://github.com/radzenhq/radzen-blazor/assets/133120114/b75ed068-bd24-48c6-9b0c-f2020d4f918f) **Desktop (please complete the following information):** - OS: Windows - Browser: Chrome - Version: 113.0.5672.92 **Additional context** if something is missing don't close the ticket before i reply. Let me answer. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#848