Data Widgets v2.27.5+: List View / Gallery Pagination resets scroll to top

0
Hi everyone,I’m experiencing an issue regarding scroll behavior in the Data Widgets starting from version 2.27.5.The Setup:Mendix Version: 9.24.39Widget: List View with the Advanced Pagination widget.The Issue: In version 2.27.4, clicking "Next" in the pagination widget updated the data correctly while maintaining the user's scroll position. However, after upgrading Data Widgets to v2.27.5 (and above), clicking "Next" causes the page/container to automatically scroll back to the top every time the data refreshes.What I've tried:Using Scroll Container widgetSwitching from List View to the Gallery widget—the Gallery shows the same "jump to top" behavior even when using its built-in paging buttons. Using Template grid (Not an option because it automatically disables the checkbox buttons nested inside it, and I need those to remain interactive)Verified that reverting to v2.27.4 resolves the issue immediately, confirming the change was introduced in v2.27.5.Has anyone else encountered this issue? Are there any known workarounds to "lock" the scroll position in these newer versions of the Data Widgets module?Thanks in advance!
asked
1 answers
0

Hi Maria,

The fact that:

  • 2.27.4 works
  • 2.27.5+ scrolls back to the top
  • The behavior occurs in both List View + Advanced Pagination and Gallery

strongly suggests you're dealing with a regression introduced in the Data Widgets module rather than an issue in your page design.

One thing I'd investigate is whether the newer widget version is causing the component to be fully re-rendered when the page number changes. When React-based widgets are recreated instead of simply refreshing their data source, the browser often loses the previous scroll position and resets the container to the top.

A few diagnostic tests I'd try:

  1. Place the List View/Gallery inside a fixed-height scroll container and check whether:
    • the page scroll resets, or
    • the container scroll resets.
  2. That helps identify which element is being re-rendered.
  3. Create a minimal test page:
  4. Plain Text
  5. Page
  6. ↓
  7. List View
  8. ↓
  9. Advanced Pagination
  10. using only standard widgets. If the issue still reproduces, it provides strong evidence of a widget regression.
  11. Compare the behavior between:
    • built-in Gallery paging
    • Advanced Pagination widget
    • Data Grid 2 paging
  12. If only the Data Widgets components are affected, that narrows the scope considerably.

Since you've confirmed reverting to 2.27.4 immediately fixes the issue, my practical recommendation would be to stay on 2.27.4 for that application until the cause is identified or a newer release resolves it.

If you haven't already, I'd also suggest raising a GitHub issue (if the Data Widgets repository is being used) or a Mendix support ticket with:

  • Mendix 9.24.39
  • Data Widgets 2.27.4 (working)
  • Data Widgets 2.27.5+ (broken)
  • A minimal reproducible page

That's exactly the kind of version-specific behavioral change that widget maintainers can usually verify quite quickly.

From what you've described, this looks much more like a scroll-position regression introduced in Data Widgets v2.27.5 than a configuration issue in your application.



answered