Thanks, Saki for the quick reply, but this solution does not solve the main problem. If we have many users who work in parallel and they have to reload data (eg. every minute) they will still have a problem with collapsing tasks and changing the zoom, even if nothing has changed - Current view is lost when load() starts.
Attachments
Peek 2020-11-12 13-50.gif (109.08 KiB) Viewed 1734 times
Would you please post a testcase that we could run and debug? If nothing has changed in the data there is no reason for Gantt to change its scroll position or zoom level or anything else. We need find out where the problem is.
I have re-tested it with the above settings and reload every 3s and it behaves as you can see on attached video.
Changed zoom level is not reset on reload
Scroll is not affected either
The expand state is reverted back but this is currently the expected behavior because expanded is a field received in the server response so when I collapse it manually (expanded:false), the next server load with expanded:true overwrites the locally changed setting. The above feature request reports the fact and will be resolved.
I'm also experience mentioned here error (Entity.js:75 Uncaught Error: Already entered replica) on updating data with syncDataOnLoad: true. On first data update this error comes alone. But if we ignore it and continue to update data, starting from second update it comes with 1 or 2 friends, see attached screenshot.
Interesting fact is that it not always prevents data from being updated. Sometimes I see data updated, sometimes not.
This seems to be critical for us as we need to preserve scroll/zoom etc. on data update. I see that there is a related ticket (https://github.com/bryntum/support/issues/1864). How soon can we expect it to be fixed?
Attachments
syncDataOnLoad-errors.png (110.03 KiB) Viewed 1672 times
Please create your own topic to get personalized help for your problem.
We highly appreciate if you attach any runnable code so we can easily reproduce the issue.
I can't give you any timeframe for the feature request you mentioned above, but you could contact us at Professional Services https://www.bryntum.com/services/ to speedup development.