Past view instead of future

2 posts, 1 answers
  1. Tommy
    Tommy avatar
    32 posts
    Member since:
    Nov 2011

    Posted 28 Feb 2012 Link to this post


    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? 


  2. Answer
    Ivana avatar
    657 posts

    Posted 02 Mar 2012 Link to this post

    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.

    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.
Back to Top