Wrong Pager position/displayed data on PagedDataBoundComponent after triggering Visible Parameter #1813

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

Originally created by @Anspitzen on GitHub (Jul 17, 2025).

Describe the bug
When switching Visible Parameter on DataList (Edit: And generally any PagedDataBoundComponent descendent) false and true again while not being on Page 1 (AllowPaging) it will show that it is on page 1 but will display data from before switching Visible to false

To Reproduce
Steps to reproduce the behavior:

  1. Go to Demo Page
  2. Edit source by adding a Checkbox/Switch for changing parameter and put that Parameter to the Visible parameter of the DataList e.g.:
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0.5rem" class="rz-p-2">
        <RadzenLabel Text="Visible DataList" Component="allowVisible" />
        <RadzenCheckBox @bind-Value="@allowVisible" Name="allowVisible" />
    </RadzenStack>

    <RadzenDataList  Visible=allowVisible 
                    WrapItems="true" AllowPaging="true"
                    Data="@products" TItem="Product" PageSize="5" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
  1. Run and go to page 3
  2. Trigger the Visible off and on again
  3. Now the pager says it is on page 1, but Data displayed is still page 3 (Page 1 would be Chai and Chang, Page 3 is Queso)

Expected behavior
Either Pager stays correct page or the displayed data is matched to pager position again

Desktop (please complete the following information):

  • Browser chrome

Aditional info
Edit: Tested it also on DataGrid, happens the exact same

Originally created by @Anspitzen on GitHub (Jul 17, 2025). **Describe the bug** When switching Visible Parameter on DataList (Edit: And generally any PagedDataBoundComponent descendent) false and true again while not being on Page 1 (AllowPaging) it will show that it is on page 1 but will display data from before switching Visible to false **To Reproduce** Steps to reproduce the behavior: 1. Go to [Demo Page](https://blazor.radzen.com/datalist) 2. Edit source by adding a Checkbox/Switch for changing parameter and put that Parameter to the Visible parameter of the DataList e.g.: ``` <RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0.5rem" class="rz-p-2"> <RadzenLabel Text="Visible DataList" Component="allowVisible" /> <RadzenCheckBox @bind-Value="@allowVisible" Name="allowVisible" /> </RadzenStack> <RadzenDataList Visible=allowVisible WrapItems="true" AllowPaging="true" Data="@products" TItem="Product" PageSize="5" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true"> ``` 4. Run and go to page 3 5. Trigger the Visible off and on again 6. Now the pager says it is on page 1, but Data displayed is still page 3 (Page 1 would be Chai and Chang, Page 3 is Queso) **Expected behavior** Either Pager stays correct page or the displayed data is matched to pager position again **Desktop (please complete the following information):** - Browser chrome **Aditional info** Edit: Tested it also on DataGrid, happens the exact same
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1813