Home Unanswered Active Tags New Question

DayPilot Scheduler Focus On a Date

Hi,

Suppose say, I show July 1 as current date and the duration is 30 days. But, when the page is loaded, I want the focus to be on July15th. Is there a way to do it?

Thanks,

Antony

Asked by Anonymous 11 months ago.
Replies

You can use the following method:

DayPilotScheduler1.SetScrollX(new DateTime(2011, 7, 15));
Answer posted by Dan Letecky 11 months ago.

I tried that but it's not working. Is that in any way affected by the Startdate property of the control??

Thanks,
Priya

Comment posted by Anonymous 10 months ago.

I know it must be, but it's just that I'm not trying to set scroll position according to date but according to the time. For example, if the start date of the control is DateTime.Today then I want to set the scrollbar position according to a specific time of the day e.g., DateTime.Now, from server side.

How can I do that??

Comment posted by Anonymous 10 months ago.

DayPilotScheduler1.SetScrollX(DateTime.Today);

Answer posted by charita 3 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java