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

Scroll to hour on button click

Asked by Hayden
1 month ago.

How would i scroll to a particular hour with DayPilotCalendar. I have tried to set DayPilotCalendar1.ScrollPositionHour = 10 for example.

But nothing seems to happen on button click

What i am trying to do is have quick jump buttons that will allow a user to jump to specific hours.

Answer posted by Dan Letecky [DayPilot]
1 month ago.

Changing the ScrollPositionHour value would only work on the server side, during the initial page load or during a PostBack.

If you want to change the scrollbar position on the client side you'll need to use scrollToHour() method:
https://api.daypilot.org/daypilot-calendar-scrolltohour/

New Reply
This reply is
Your name (optional):