Page 1 of 1

[INFO REQ] Scroll to event that is outside the current visible area

Posted: Wed Oct 05, 2022 10:43 am
by hugo.vanhaaren

Hi, We're using scheduler 5.1.2 and we want the user to be able to scroll to a certain event based on a description they type in a text box. Previously this was possible to query the dom for a class and text to get the element and then we could scroll to it using standard javascript.

The scheduler now uses paging so the event might be rendered yet if it's on the bottom of the canvas so our current logic does not work anymore. What would be the approach to achieve this in the new scheduler?

Thanks.


Re: [INFO REQ] Scroll to event that is outside the current visible area

Posted: Wed Oct 05, 2022 2:39 pm
by alex.l

Did you see this example? https://bryntum.com/examples/scheduler/filtering/
Check "Highlight" field's handler, it uses eventStore to search the event and after that you can call https://bryntum.com/docs/scheduler/api/Scheduler/view/mixin/SchedulerScroll#function-scrollEventIntoView