search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

ScrollToResourse() in dynamic event rendering

Asked by Tan PQ
3 years ago.

I implemented a scheduler with dynamic events render, i have a function to search for a certain resource, highlight and scroll to it. The problem is, after i scroll to that resource, the event is not yet render, so when it's actually rendering, row height is increase and push the highlighted resource out of screen.
Is there anyway to scroll back to resource after everything is done rendered, i try OnAfterRender() but it was not being called at all.

Answer posted by Dan Letecky [DayPilot]
3 years ago.

It looks like the onAfterRender event handler wasn't fired properly if args.clearEvents was set to true in onScroll (and that is the default value).

It should be fixed now in the latest sandbox build (2020.3.4596):
https://release.daypilot.org/changes/js/

Please let me know if the problem persists.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.