Flat form, in the case of many dimensions/metrics, when scrolling left and then set a filter on one of the columns: after filtering Flexmonster puts us on the far left - back on the first column and thus confuses the analysis we performed in the previous place.
For example:
After filtering:
What options do we have to overcome this?
Hello, Janez!
Thank you for reaching out to us.
This scroll behavior occurs due to Flexmonster's architectural limitation, which implies redrawing the grid after applying the filter. After the grid redraw, the scroll position resets to zero.
As a workaround, we recommend saving the scroll position each time the filter view is opened and restoring this scroll value after the filter view is closed. Tracking the events can be done via the filteropen and filterclosed event handlers. Also, a small timeout should be added before resetting the scroll position to ensure that the left scroll animation is already finished.
You are welcome to check the JSFiddle example: https://jsfiddle.net/flexmonster/4hdqjLb3/
Please let us know if this approach would work for you.
Best Regards,
Maksym
Thank you this works.
Have you talked to the DEV team to see if this could be an out-of-the-box solution, so we don't have to add these functions to every FX component?
Janez
Hello, Janez!
Thank you for your reply.
After discussing this matter with the developer team, we decided that preserving the scroll position after applying the filters sounds reasonable. We have added this feature to our customers' wishlist. Our team will notify you in case of any updates.
You are welcome to contact us if more questions arise.
Best Regards,
Maksym