Page 1 of 1

[REACT] go to an event day and time

Posted: Thu Dec 01, 2022 6:19 pm
by info@xnew.it

Hello bryntum team, how can I go to an event day and time? I managed to go on the selected day but not the time, I used the following code:

	const scheduler = schedulerRef.current?.instance
        scheduler.tbar.widgetMap.datePicker.value = new Date("event startDate")
        scheduler.endDate = new Date("end of the day")

I need to move to the correct spot where the event is and not only the day,
Thanks in advance.


Re: [REACT] go to an event day and time

Posted: Fri Dec 02, 2022 9:51 am
by marcio

Hey info@xnew.it,

Do you have only the information about the date and time of the event? What other information do you have related to the event? I'm asking because we recommend using https://bryntum.com/products/scheduler/docs/api/Grid/view/mixin/GridNavigation#function-focusCell for navigation, but that would require to know some info related to the event.


Re: [REACT] go to an event day and time

Posted: Fri Dec 02, 2022 10:47 am
by info@xnew.it

Hello, actually I have all the event's information such as endDate, id, resourceId...


Re: [REACT] go to an event day and time

Posted: Fri Dec 02, 2022 1:46 pm
by marcio

So, as you have the date and time that you want to go to, you can use https://bryntum.com/products/scheduler/docs/api/Scheduler/view/mixin/TimelineScroll#function-scrollToDate