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

DayPilot Scheduler Focus On a Date

Asked by Anonymous
13 years ago.

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

Answer posted by Dan Letecky
13 years ago.

You can use the following method:

DayPilotScheduler1.SetScrollX(new DateTime(2011, 7, 15));
Comment posted by Anonymous
13 years 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
13 years 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??

Answer posted by charita
12 years ago.

DayPilotScheduler1.SetScrollX(DateTime.Today);

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.