RadzenPager does not display when only one page of data #286

Closed
opened 2026-01-29 17:34:45 +00:00 by claunia · 1 comment
Owner

Originally created by @bengavin on GitHub (Dec 28, 2021).

Describe the bug
RadzenPager does not display if:

  • ShowPagingSummary' is true
  • AND
  • (PageSizeOptions is not specified (or an empty set)
  • OR
  • Page Count <= 1)

To Reproduce
Steps to reproduce the behavior:

  1. Add a RadzenDataGrid component with appropriate data source
  2. Set ShowPagingSummary="true"
  3. Set PagingSummaryFormat="Matching Records: {2}"
  4. Set PageSize to some number >= number of available records
  5. Note that paging summary is not displayed

Expected behavior
RadzenPager will display paging summary when a format is specified, regardless of whether or not multiple pages of data exist.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac OS 12.x
  • Browser: Brave
  • Version: 1.33.106

Additional context
We want to show the total number of records regardless of whether or not there are multiple pages of data, we also do not want the pager control area to 'pop in and out' under filtering/etc that may cause the number of records in the grid to change. We are unable to use the built-in 'record count selection' capabilities as they do not meet our requirements (10, 20, 50, 100, All) and as such, we can't use the workaround of supplying a 'PageSizeOptions' property value, which also causes the pager to appear.

Originally created by @bengavin on GitHub (Dec 28, 2021). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** RadzenPager does not display if: - ShowPagingSummary' is true - AND - (PageSizeOptions is not specified (or an empty set) - OR - Page Count <= 1) **To Reproduce** Steps to reproduce the behavior: 1. Add a RadzenDataGrid component with appropriate data source 2. Set ShowPagingSummary="true" 3. Set PagingSummaryFormat="Matching Records: {2}" 4. Set PageSize to some number >= number of available records 5. Note that paging summary is not displayed **Expected behavior** RadzenPager will display paging summary when a format is specified, regardless of whether or not multiple pages of data exist. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: Mac OS 12.x - Browser: Brave - Version: 1.33.106 **Additional context** We want to show the total number of records regardless of whether or not there are multiple pages of data, we also do not want the pager control area to 'pop in and out' under filtering/etc that may cause the number of records in the grid to change. We are unable to use the built-in 'record count selection' capabilities as they do not meet our requirements (10, 20, 50, 100, All) and as such, we can't use the workaround of supplying a 'PageSizeOptions' property value, which also causes the pager to appear.
Author
Owner

@enchev commented on GitHub (Dec 29, 2021):

Hey @bengavin,

I'm afraid that this is how the component is designed - to not display the pager if there are not enough items for paging. For sure this behavior can be changed however it should be optional and the default option should be the current state, otherwise it will be breaking change. We accept pull requests.

@enchev commented on GitHub (Dec 29, 2021): Hey @bengavin, I'm afraid that this is how the component is designed - to not display the pager if there are not enough items for paging. For sure this behavior can be changed however it should be optional and the default option should be the current state, otherwise it will be breaking change. We accept pull requests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#286