Dear Team,
I was working on persisting selected task focus after refreshing data (manual, auto refresh, after drag&drop/doubleclick action, change date range etc.)
It is quite easy to keep selected row data in component (TaskId) - after refresh it is possible to use:
scrollToTask(selectedTaskId)
BUT this does not scroll vertically - and I didn't found any API for that.
Current workaround is saving scrollPosition - from
this.visualPlanningObj.ganttChartModule?.scrollElement?.scrollTop
BUT this is not efficient (e.g. when user changes date range, or expand some of deep nested tasks - scroll height changes)
Please advice what is the best way to persist (or calculate) vertical scroll with/without virtualization.