$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Multiple Days Views in Scheduler in C#

Customize MultipleDay with KetticScheduler Control

The multiple day view of KetticScheduler allows the developers to display a single day as well as multiple sequences of days, or duration, on the calendar in C# Windows Forms application. This multiple day view is able to display multiple date-time intervals with appointments arranged one next to another. In this tutorial, we are going through the process of showing multiple days and durations on calendar and customizing the views for C# .NET application.

C# Setting MultidayView for Calendar with Scheduler

To change the view of Scheduler to MultipleDayView, we shall use the properties, ActiveViewType or ActiveView as the C# code below.

this.ketticScheduler1.ActiveViewType = SchedulerViewType.MultiDay;
SchedulerMultiDayView multiDayView = new SchedulerMultiDayView();
DateTime startDate = DateTime.Today;
multiDayView.Intervals.Add(startDate, 2);
multiDayView.Intervals.Add(startDate.AddDays(4), 3);
this.ketticScheduler1.ActiveView = multiDayView;
KetticScheduler control provides the Intervals collection for the users to insert, delete, and customize a date time Interval in SchedulerMultiDayView instance. The KetticScheduler View class offers the GetAppointmentsInInterval helper method to get all appointments in a particular interval. In addition, to get all appointments in the multiple day view, we shall use the Appointments collection. The following C# code shows how to set the date time interval.

DateTimeInterval interval = new DateTimeInterval();
interval.Duration = new TimeSpan(20, 5, 25);
multiDayView.GetAppointmentsInInterval(interval);

C# Set Work time Hours on Calendar with Scheduler

The MultipleDayView of KetticScheduler control allows the users to predefine a range of hours to indicate the timeline and the end users of your application can easily carry out the scheduling. The work time hours on the calendar will be indicated with a slightly different color. The C# code below demonstrates how to set the work time hours through the TimeInterval property.

this.ketticScheduler1.GetDayView().WorkTime = new TimeInterval(TimeSpan.FromHours(5), TimeSpan.FromHours(9));

Display and Hide the Day Headers in Scheduler

To display and hide the day headers on Calendar for Multiple Day view, we can enable the DisplayHeader property of the KetticScheduler control as below.

multiDayView.DisplayHeader = true;

Set Day Header Format for Calendar in Scheduler

To customize the format of the day header, KetticScheduler contains the HeaderFormat property to achieve the formatting. The C# code below shows how to set the format.

multiDayView.HeaderFormat = "MMMM dd";

Ruler Scale for Day View Setting in C#.NET

KetticScheduler View class contains the RangeFactor property to set the scale of the ruler. It is possible to set the ruler scale to be a predefined values or a new scale. The available Range factor modes include 5 minutes, 10 minutes, a quarter, half hour and one hour. To set the scale range for multiple day view, use the C# code below.

multiDayView.RangeFactor = ScaleRange.Hour;

Set Height of Ruler and Row in Scheduler

The multiple day view of the KetticScheduler provides the RulerScaleSize property to change the height of the ruler as well as the row. The C# code below demonstrates how to achieve this.

multiDayView.RulerScaleSize = 40;

Change the Ruler Width with KetticScheduler

The multiple day view of the KetticScheduler provides the RulerWidth property to customize the width of the ruler. The valid value ranges from 0 pixels to greater. The C# code below shows the modification.

multiDayView.RulerWidth = 40;

C# Set Start and End Times for Calendar with Scheduler

To set the start and end times of a multiple day view shown on your Calendar, we can use the RulerStartScale and RulerEndScale properties, whose valid values ranges from 0 to 24. The start and end times setting will be useful when we display part of the hours in a day. The C# code below shows how to achieve this.

multiDayView.RulerScaleSize = 50;

Set Ruler Time Format for Calendar in Scheduler

The multiple day view of the KetticScheduler provides the RulerTimeFormat property for the users to customize the time format to be am or pm. The C# code below demonstrates the setting of Ruler Time Format.

multiDayView.RulerStartScale = 9;
multiDayView.RulerEndScale = 14;
multiDayView.RulerTimeFormat = RulerTimeFormat.hours12;

multiDayView.RulerStartScale = 9;
multiDayView.RulerEndScale = 14;
multiDayView.RulerTimeFormat = RulerTimeFormat.hours24;

Display and Hide Ruler on Calendar in Scheduler

To display and hide the ruler for multiple day view, enable or disable the DisplayRuler property in Scheduler

multiDayView.DisplayRuler = true;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls