We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Flat form, in the case of many dimensions/metrics after filtering puts us on the far left

Answered
Janez asked on September 5, 2023

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:
A screenshot of a computer

Description automatically generated
After filtering:
A screenshot of a computer

Description automatically generated

What options do we have to overcome this?

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster September 7, 2023

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

Public
Janez September 11, 2023

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

Public
Maksym Diachenko Maksym Diachenko Flexmonster September 12, 2023

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

Please login or Register to Submit Answer