You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On using an Analytical Table with infiniteScrolling and groupBy enabled, on scroll to load more data, the scroll position jumps back to the top of the table
The table is programmatically expanding all rows, when the data is fetched, this internal table state is reset per default and that's why the table is scrolling to the top. To prevent this you can use autoResetExpanded: false.
Different to "normal" tables, a grouped table does add new rows not necessarily at the end of the previous rows and therefore even with autoResetExpanded: false the scroll position can be off. Unfortunately, this is one of the reasons we don't recommend using grouping in combination with infinite scrolling. Some other limitations can be found in this PR, where we, i.a., outline this limitation more prominently.
When loading new data, you can try updating the scroll position yourself, by leveraging the scrollTo or scrollToItem method. (docs)
As there is unfortunately no design concept for this behavior and grouping was even deprecated for the SAPUI5 table, I'm going to close this issue now. If you have additional questions or feedback, please feel free to still post them here, as we also monitor closed issues.
Describe the bug
On using an Analytical Table with
infiniteScrolling
andgroupBy
enabled, on scroll to load more data, the scroll position jumps back to the top of the tableIsolated Example
https://stackblitz.com/edit/ui5wcr-at-bvsfmh?file=src%2FApp.tsx
Reproduction steps
Expected Behaviour
On scroll to load more data, scroll position should remain stationary on the page.
Screenshots or Videos
No response
UI5 Web Components for React Version
~1.29.11
UI5 Web Components Version
~1.24.10
Browser
Chrome, Edge, Firefox
Operating System
No response
Additional Context
No response
Relevant log output
No response
Organization
SAP
Declaration
The text was updated successfully, but these errors were encountered: