I'm currently using Flexmonster with a large dataset that renders many columns, which enables horizontal scrolling in the grid.
I've noticed that whenever I drag and drop a column to reorder it within the grid, the horizontal scroll position resets to the left. This disrupts the user experience, especially when working with wide reports, as users lose their current scroll position and need to manually scroll back to where they were.
JSFiddle reproducing the problem: https://jsfiddle.net/20wyph8k/
Steps to reproduce:
I tried listening to Flexmonster events like reportchange, beforegriddraw, and aftergriddraw, but there doesn't seem to be a native method to preserve or restore the scroll state. Is there a recommended way to prevent this scroll reset or to restore the previous scroll position after a column drag action?
Thanks for your help!
Hello Jeffersom,
Thank you for reaching out to us.
We want to explain that the scroll position reset after dragging fields is the intended behavior of Flexmonster. When a field is moved, the slice changes, which can significantly alter the number of rows or columns in the report. To ensure consistent rendering and avoid potential confusion, Flexmonster automatically scrolls back to the initial position.
You are welcome to contact us if other questions arise.
Kind regards,
Nadia