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

how do you show current day in week and day view

Asked by Anonymous
13 years ago.

How do you show today or current day as the first day viewed in the week view and day view in the scheduler

Answer posted by Dan Letecky [DayPilot]
12 years ago.

You can use DateTime.Today as DayPilotScheduler.StartDate. This will display today as the first day in the matrix.

If you want to show a full week and just set the initial scroll position to today, use the following:

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            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.