Our pure JavaScript Scheduler component


Post by david-molnar-oculai »

We want to restore scroll position/set default position for the Scheduler Pro. When should we do this? What event is the best to use for this purpose. Our data is "static", we just pass this to the Scheduler (don't use Scheduler's loading etc.). I tried dataReady in the project, but that comes a bit too late and there is a visible delay until the scroll jumps to the correct position.

Also, is there a way that the scroll position be passed as a config (are there config alternatives for restoreScroll, scrollEventIntoView, scrollToDate)?


Post by ghulam.ghous »

I believe visibleDate is what you are looking for. https://bryntum.com/products/schedulerpro/docs/api/Scheduler/view/TimelineBase#property-visibleDate

        visibleDate : {
            date    : '2022-03-27',
            block   : 'start'
        }, 

Post by david-molnar-oculai »

Thank you. This works to "replace" scrollToDate. Are there similar config alternatives for scrollEventIntoView or restoreScroll? If not, what is a good event in which to call them?


Post by tasnim »

I don't see any alternatives for those. Maybe you could use them inside https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/view/SchedulerPro#event-paint listener!

If you could describe your use case a bit further, we might be able to offer you an alternative or better solution!

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by david-molnar-oculai »

paint event works very well. We'll use that one. Thank you.


Post Reply