This is a migrated thread and some comments may be shown as answers.

[Solved] Setting specific start date for timeline view

1 Answer 180 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 Jul 2009, 05:19 PM
I am working on an online schedule viewer that is supposed to display a person's shifts in a week.  The week view is confusing for the end users in that they have to scroll to view their shifts when it's after a late shift.  They like the timeline view, but it only shows from todays date going forward.  This too is confusing for the end users.

Is it possible to set the timeline view to start on a specific day, ie Sundays, or programatically with a specific date like 7/19/2009?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jul 2009, 11:00 AM
Hi Steve,

You can set the SelectedDate property of RadScheduler in order to start the TimeLine view on a specific day.

C#:
 
protected void RadScheduler1_PreRender(object sender, EventArgs e) 
    DateTime dateToshow = new DateTime(2009, 07, 19); 
    RadScheduler1.SelectedDate = (DateTime) dateToshow; 

-Shinu.
Tags
Scheduler
Asked by
Steve
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or