Pagination on Widgets in Dashboard #10165

Closed
opened 2025-12-29 21:27:43 +01:00 by adam · 1 comment
Owner

Originally created by @evan4yoo on GitHub (Aug 31, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

(v4.0.10)

Python Version

3.10

Steps to Reproduce

Seemingly use any widget on dashboard (Tested Change Log & Users -> User widgets)
Have more entries than fit on the page
Do not get page selection

Expected Behavior

By default on dashboards there is a "Change Log" widget
If you scroll to the bottom in NetBox version 3.x you would get a page selection
As shown here:

image

This still works if you go to Operations - > Change Log

You can see the pagination just fine on the bottom of the change log as expected here:

image

It's unclear with 4.0 if this is an intended change or not, Wasn't able to find anything in regards to this.

Observed Behavior

Pagination preferences set in user behaviour is not followed and you have to use the actual form to reach a second page or to change the size inside the widget temporarily.

Originally created by @evan4yoo on GitHub (Aug 31, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version (v4.0.10) ### Python Version 3.10 ### Steps to Reproduce Seemingly use any widget on dashboard (Tested Change Log & Users -> User widgets) Have more entries than fit on the page Do not get page selection ### Expected Behavior By default on dashboards there is a "Change Log" widget If you scroll to the bottom in NetBox version 3.x you would get a page selection As shown here: ![image](https://github.com/user-attachments/assets/6dcaff85-41d0-443b-9094-1e6f4983064d) This still works if you go to Operations - > Change Log You can see the pagination just fine on the bottom of the change log as expected here: ![image](https://github.com/user-attachments/assets/c364edff-87a4-4170-90e8-8cef014d156a) It's unclear with 4.0 if this is an intended change or not, Wasn't able to find anything in regards to this. ### Observed Behavior Pagination preferences set in user behaviour is not followed and you have to use the actual form to reach a second page or to change the size inside the widget temporarily.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:27:43 +01:00
adam closed this issue 2025-12-29 21:27:43 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 4, 2024):

The root issue is the hx-select="table" attribute on the widget's <div> element in the HTML template, which ignores the content which comes after the table.

@jeremystretch commented on GitHub (Sep 4, 2024): The root issue is the `hx-select="table"` attribute on the widget's `<div>` element [in the HTML template](https://github.com/netbox-community/netbox/blob/886d6355243b8ebe460b097228a9d5c36aebe0f8/netbox/templates/extras/dashboard/widgets/objectlist.html#L3), which ignores the content which comes after the table.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10165