[]
        
(Showing Draft Content)

Default Views

The C1Schedule control supports multiple calendar views for displaying appointments and schedule data.

Available built-in views include:

View

Image

Description

DayView

C1WinForms DayView Option

Displays detailed appointment information for a single day.

TimeLineView

C1WinForms TimeLineView Option

Displays appointments in a horizontal timeline layout.

MonthView

C1WinForms MonthView Option

Displays displays appointments across one or more months.

WeekView

C1WinForms WeekView Option

Displays appointments for a weekly period.

The default range is Monday through Friday.

WorkWeekView

C1WinForms WorkWeekView Option

Displays displays appointments for specified work days.

The default range is Monday through Friday.

Set the active view using the ViewType property of the C1Schedule class. This property accepts values from the ScheduleViewEnum enumeration.


Changing the Default Data View

Configure the default calendar view at design time or in code by using the ViewType property.

In the Smart Designer

  1. Open the C1Schedule Smart Designer.

  2. Select Visual Style.

  3. In the Visual Style dialog box, select Month View.

  4. Close the dialog box.

For information about opening the Smart Designer, see C1Schedule Smart Designer.

In the Tasks Menu

  1. Open the C1Schedule Tasks menu.

  2. In the Default View drop-down list, select MonthView.

  3. Close the C1Schedule Tasks menu.

For information about opening the Tasks menu, see C1Schedule Tasks Menu.

In Code

Set the ViewType property to TimeLineView to display the Timeline view.

c1Schedule1.ViewType = ScheduleViewEnum.TimeLineView;

When more than 14 days are selected, Scheduler automatically changes the active view to WeekView. Handle the BeforeViewChange event to retain TimeLineView and display the dates selected in C1Calendar.

if ((c1Schedule1.ViewType == ScheduleViewEnum.TimeLineView) && !(e.ViewType == ScheduleViewEnum.TimeLineView))
{
     e.ViewType = ScheduleViewEnum.TimeLineView;
     e.Dates = c1Calendar1.SelectedDates;
}                  

Extended Views

In addition to its built-in views, Scheduler supports extended views through the C1.Win.C1Schedule.Extended assembly. The assembly provides the following controls:

  • AgendaView

  • TableView

These controls provide alternative layouts for displaying Scheduler data. For more information, see Agenda View and Table View.