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 DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlAppointment & DialogsCreate AppointmentsRecurring AppointmentsRecurrence RuleDrag-and-DropCustomizeAdd TooltipsScheduler - ViewsPropertiesGet Started in C#Day ViewMulti-Day ViewWeek ViewWork Week ViewMonth ViewTimeline ViewGroupingTime ZoneScheduler - Data BindingGet Started in C#CodelessDatasource PropertyData ProviderCustom FieldsScheduler - NavigatorGet Started in C#Navigation StepImport & Export AppointmentsImport from ICalendarExport to ICalendarImport & Export to a Custom FileScheduler - LocalizationTranslate StringsLocalize Scheduler NavigatorLocalize Dialog StringsScheduler - ReminderGet Started in C#Scheduler - AppearanceThemes and AppearanceFormat CellsScheduler - Print SupportPrint StylesEvents & CustomizationWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |