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

Past view instead of future

1 Answer 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 28 Feb 2012, 05:18 PM
Hi,

I use the scheduler to show what happened in the past hours/days. By default, when I use the scheduler, it shows me what will happen. Time line, multi day and week views will show me today plus a couple of days. Is there an easy way to always show past events? 

thanks 

Tommy

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivana
Telerik team
answered on 02 Mar 2012, 12:43 PM
Hello Tommy,

The main purpose of RadScheduler is to show appointments which are about to happen, depending on the SelectedView. You could, however, use the SelectedDate property of RadScheduler to set its selected date to lets say one day before the current date. If RadScheduler is bound to a web service, you could use the client API of the control to  do so. 

Here is an example how to set the selected date on the server:
protected void Page_Load(object sender, EventArgs e)
{
    DateTime date = RadScheduler1.SelectedDate;
    date = date.AddDays(-1);
    RadScheduler1.SelectedDate = date;
}

I hope this helps.

Greetings,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Tommy
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or