- Online Barcode Generator
- How To
- Buy Now
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.
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.
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.
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.
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.
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