$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 > Properties of Scheduler Control in C#

C# Display Scheduler Views using KetticScheduler control

KetticScheduler control is capable of displaying various views of dates and times, such as Day, MultipleDay, Week, WorkWeek, Month and TimeLine. This is achieved by using the SchedulerViews C# class and the descendent of it. Among of them, the Day view only display a single day or a single sequence of days at onece, on the contrary, the MultipleDay view show any sequences of days. In addition, the users can display all the views by using the single Scheduler control rather than think of more than one control for different views.

SchedulerView C# Class for Displaying Views

KetticScheduler control provides the SchedulerView C# class for the users to show the views in scheduler. To display and set a specific view, we shall use the descendent of the SchedulerView C# class and the special properties of each view class. The specific scheduler view class is retrieved by implementing the Get() method of the KetticScheduler component. The following are the descendent C# class of the SchedulerView.
  • SchedulerDayView
  • SchedulerWeekView
  • SchedulerMonthView
  • SchedulerTimelineView
The C# code below demonstrates how to get a day view through the Get() method and then customize the ruler to start at the first hour and stop the third hour.

SchedulerDayView dayView = ketticScheduler1.GetDayView();
dayView.RulerStartScale = 1;
dayView.RulerEndScale = 3;
SchedulerView class contains the ActiveViewType property for the users to change the views. To achieve that, set this property to one of the enumeration members of SchedulerViewType. The C# code snippet below shows how to achieve this.

ketticScheduler1.ActiveViewType = SchedulerViewType.Day;
The ActiveView property allows the users to get the view shown currently. This is achieved by casting this property to the ActiveViewType. The C# code below shows how to set the ActiveView property.

ketticScheduler1.ActiveViewType = SchedulerViewType.Month;
(ketticScheduler1.ActiveView as SchedulerMonthView).WeekCount = 2;
When we need to detect the changes happened to the view, we shall use the events, ChangingActiveView and ChangedActiveView. The ChangingActiveView event arguments allow the users to cancel the change applied to view. The C# code below shows how to handle the ActiveViewChanging event.

void ketticScheduler1_ChangingActiveView(object sender, ChangingSchedulerViewEventArgs e)
{
this.Text = String.Format("Old: {0} New: {1}",
e.OldView.ViewType.ToString(), e.NewView.ViewType.ToString());
}
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