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

Scheduler Visual Date Range

1 Answer 53 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 11 Sep 2011, 07:12 PM
Is there a way to modify the range which is visible on the Scheduler view? Ex. If I select September, it shows October 1-2 also, can I prevent it from showing the dates from any other month other than the one I am currently viewing? If so, what attributes need to be set?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Sep 2011, 11:34 AM
Hello Richard,

Try the following code snippet to achieve your scenario.
C#:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
   if (RadScheduler1.SelectedView == SchedulerViewType.MonthView)
   {
      String month = RadScheduler1.SelectedDate.Month.ToString();
      if (e.TimeSlot.Start.Date.Month.ToString() != month)
       {
          e.TimeSlot.Control.Controls[0].Controls.Clear();
       }
    }
}

Thanks,
Shinu.
Tags
Scheduler
Asked by
Richard
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or