Our pure JavaScript Scheduler component


Post 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.

Thank you for your help!


Post 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.

Best regards,
Márcio


Post by info@xnew.it »

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

Thank you for your help!


Post 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

Best regards,
Márcio


Post Reply