Skip to main content
A newer version of this page is available. .

Views

  • 3 minutes to read

The SchedulerView uses Views to display appointments the DataSource provides. A View specifies the appearance of appointments and their layout. This topic lists views the scheduler supports.

The SchedulerView.Views collection stores views the scheduler can utilize. Note that the scheduler has all types of views with default settings available out-of-the-box. Views you specify in XAML or code replace the predefined ones (all default views are removed). You can define any number of views with the same type and different settings.

The SchedulerView.ActiveViewIndex property specifies the index of a view the scheduler currently uses:

<dxs:SchedulerView ActualViewIndex="1">
    <dxs:MonthView>
    <dxs:DayView>
</dxs:SchedulerView>

Note

The SchedulerView.Views is a content property. You can skip property tags in the markup.

Day View

The Day View displays appointments scheduled for a specific date or for several days following each other. The DayView.DayCount property manages the number of days the view shows. The image below highlights elements the view includes:

Day View Elements

  1. Time Ruler
  2. Time Ruler Cell
  3. Time Ruler Header
  1. Header Item
  2. All Day Area
  3. All Day Appointment
  1. All Day Cell
  2. Appointment
  3. Day Cell

The following table lists basic settings that configure the view:

Property

Description

DayCount

Gets or sets the number of days the Day View displays.

ShowWorkTimeOnly

Gets or sets whether the View should show only WorkTime.

SnapToCellsMode

Gets or sets how the View snaps the scheduler’s appointments.

Work Week View

The Work Week View displays appointments scheduled for a specific work week. The image below highlights elements the view includes:

Work Week View Elements

  1. Time Ruler
  2. Time Ruler Cell
  3. Time Ruler Header
  1. Header Item
  2. All Day Area
  3. All Day Appointment
  1. All Day Cell
  2. Appointment
  3. Day Cell

Note

The following table lists basic settings that configure the view:

Property

Description

ShowWorkTimeOnly

Gets or sets whether the View should show only WorkTime.

SnapToCellsMode

Gets or sets how the View snaps the scheduler’s appointments.

Week View

The Week View displays all appointments for a specific week. The image below highlights elements the view includes:

Work Week View Sample

  1. Time Ruler
  2. Time Ruler Cell
  3. Time Ruler Header
  1. Header Item
  2. All Day Area
  3. All Day Appointment
  1. All Day Cell
  2. Appointment
  3. Day Cell

Note

The SchedulerView.FirstDayOfWeek property specifies the day from which a week starts.

The following table lists basic settings that configure the view:

Property

Description

ShowWorkTimeOnly

Gets or sets whether the View should show only WorkTime.

SnapToCellsMode

Gets or sets how the View snaps the scheduler’s appointments.

Month View

The Month View displays all the appointments for a specific month. The image below highlights elements the view includes:

Month View Sample

  1. Header Item
  2. Cell
  3. Appointment

Property

Description

ShowWorkDaysOnly

Gets or sets whether the View shows only workdays.

WeekCount

Gets or sets a number of weeks that the View shows on the screen at one time.