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.
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
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
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
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
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
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
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
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