☝️Small business or a startup? See if you qualify for our special offer.
+

Prevent scroll after insert data on a cell inside pivot table

Answered
Thiago Santos asked on June 13, 2024

Hi,

 

There's a way inside Flexmonster where we can prevent the table from scrolling to the top after insert a new data on a cell?

 

Thank you,

Thiago.

8 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster June 18, 2024

Hello, Tiago!

Thank you for contacting us.

Kindly note that Flexmonster always returns the scroll to its initial position after the data source is reloaded.

Hope our answer has addressed your question.

Regards,
Solomia

Public
Eduardo Cruz March 21, 2025

Hi

 

We found the example (Edit fiddle - JSFiddle - Code Playground)where if we scroll all the way to right and change something , press the button  this does not return to the initial position

Still using a similar example (Edit fiddle - JSFiddle - Code Playground) but adding the pivot.endpoint function it returns to the initial position.

How I can have always the first scenario even with pivot endpoint?

 

thanks

Eduardo

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 24, 2025

Hello, Eduardo!

Thank you for reaching out to us.

Kindly note that when adding a different function endpoint to the updateData API call, Flexmonster treats it as a new data source and, therefore, resets the scroll position so users can check out potential new data.

We have modified the provided example to use the same function endpoint when creating the report and updating the data: https://jsfiddle.net/flexmonster/6v75egp1/.

Hope you will find our answer helpful.

Kind regards,
Solomiia

 

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 1, 2025

Hello, Eduardo!

Hope you are doing well.

Our team is wondering if you had some time to check the provided example with updating data using function endpoint approach. Could you please let us know if it was helpful?

Looking forward to hearing from you.

Kind regards,
Solomiia

 

Public
Eduardo Cruz April 2, 2025

Hi,

So in our solution we already just have one endpoint so the switchdata approach will no work. We saw that the reset for the initial position only happens the first time that we change a value after that it works properly.

The question is if there is a way to avoid this first time reset ou force it to do it when  I open the pivot table?

Thanks

Eduardo

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 4, 2025

Hello, Eduardo!

Thank you for your feedback.

Kindly note that if url or index in the report.dataSource is changed, Flexmonster treats it as a new data source. Therefore, it reloads the data and resets the scroll to the initial position so users can explore new data. For example, if the first data load was made without a function approach or the function is different, the scroll will be reset.
So, please make sure the URL is exactly the same, as shown in the example: https://jsfiddle.net/flexmonster/stza1pk2/.

Hope it helps.

Kind regards,
Solomiia

Public
Eduardo Cruz April 7, 2025

Hi

We were able to simulate what happen in our app on the link Flexmonster updateData pivotEndpoint - JSFiddle - Code Playground

So the first time you refresh will return to the initial position but the second time no.

 

Thanks

Eduardo

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 8, 2025

Hello, Eduardo!

Thank you for the reproducible example.

We agree that the scrolling behavior when updating the data can be improved to be more consistent in different scenarios. We have added the idea to our Customers Wishlist, but there is no ETA for this improvement at the moment.

Our team will notify you in case of any updates on the matter.
Feel free to reach out to us if any other questions arise.

Kind regards,
Solomiia

 

Please login or Register to Submit Answer