New to Telerik UI for WinUI? Download free 30-day trial

Overview

The Scheduler provides the functionality of displaying the data in different views. There are four predefined views from which you can choose to easily navigate through the appointments. These views ensure better flexibility and save time to write or modify the logic behind all different controls to make them work as one. You can customize each view – you can modify its orientation, the number of days displayed, customize the time ruler, etc.

  • Day View: Displays the appointments for a single day. It is always grouped by date and additionally can be grouped by resource. It can be oriented horizontally or vertically. If there is more than 1 day displayed in this view, the listing starts from value of the CurrentDate property set to the Scheduler control.

  • Week View: Contains the same properties as the DayView with the only difference that the displayed period is not just a single day but the days of a whole week. It is always grouped by date and additionally can be grouped by resource. The difference between the DayView and the WeekView is that the first displayed date in WeekView is the first day of the week of the CurrentDate property.

  • Month View: Displays by default the appointments in one month and allows you to browse through long-term periods. It is always grouped by week and additionally can be grouped by resource. The MonthView can be oriented only horizontally.

  • Timeline View: Displays the days and the hours in a timeline like matter. It cannot be grouped by date, but only by resource. The TimelineView can be oriented horizontally or vertically. The first day in this view is the value of the CurrentDate property of the Scheduler control.

  • Agenda View: Display a set of appointments for a specific period of time. Read more in the Agenda View article.

Also, through defining different properties you can create your own custom view.

More information about the common for all views properties can be found here and for view specific properties - here.

How to set the views

RadScheduler has different definitions for each view. It has four types of predefined view definitions, as mentioned earlier:

  • DayViewDefiniton

  • MonthViewDefinition

  • TimelineViewDefinition

  • WeekViewDefinition

  • AgendaViewDefinition

In order to include each one of the views in the RadScheduler, they have to be defined as follows:

Example 1: Populating the ViewDefinitions in xaml

<telerik:RadScheduler AppointmentsSource="{Binding Appointments}" x:Name="scheduler"> 
    <telerik:RadScheduler.ViewDefinitions> 
        <telerik:DayViewDefinition/> 
        <telerik:MonthViewDefinition/> 
        <telerik:WeekViewDefinition/> 
        <telerik:TimelineViewDefinition/> 
        <telerik:AgendaViewDefinition/> 
    </telerik:RadScheduler.ViewDefinitions> 
</telerik:RadScheduler> 

Example 2: Populating the ViewDefinitions in code

MonthViewDefinition monthDefintion = new MonthViewDefinition(); 
DayViewDefinition dayDefintion = new DayViewDefinition(); 
WeekViewDefinition weekDefinition = new WeekViewDefinition(); 
TimelineViewDefinition timelineDefinition = new TimelineViewDefinition(); 
AgendaViewDefinition agendaViewDefinition = new AgendaViewDefinition(); 
this.scheduler.ViewDefinitions.Add(monthDefintion); 
this.scheduler.ViewDefinitions.Add(dayDefintion); 
this.scheduler.ViewDefinitions.Add(timelineDefinition); 
this.scheduler.ViewDefinitions.Add(weekDefinition); 
this.scheduler.ViewDefinitions.Add(agendaViewDefinition); 

See Also

In this article
Not finding the help you need?