Customizing Day View for Calendar with KetticScheduler Control
KetticScheduler control provides the intuitive and familiar interface for the developers to display the day view and offers large flexibility to customize the day view in C# Windows Forms application. By using this Scheduler control, we can display a single or several days at a time. Furthermore, if we add the Navigator control to the Scheduler, we can simply view the day forward and backward. In this tutorial, we are going through the process of displaying the day in calendar and customizing the day view in C# Windows Forms application.
C# Set Day View with KetticScheduler for Calendar
KetticScheduler control is a single component that can add various views to Calendar. The default setting is the Day View. The C# code snippet below demonstrates how to set the calendar to be Day View with the Scheduler control.
C# Get Day View in KetticScheduler
When we customize the day view in KetticScheduler, we can use the GetDayView method to get the instance to the SchedulerDayView. The C# code snippet below shows how to get the C# method.
If we set the ActiveView property beyond the SchedulerDayView in scheduler, this method will returns null. The C# code below shows the setting of ActiveView property in KetticScheduler control for Windows Forms.
Set DayCount for Calendar with KetticScheduler
KetticScheduler View C# class provides the DayNumber property to set the number of the days shown on the Calendar. The valid number of days range from 1 to 10. To change the number of day view, we can follow the C# code below.
C# Customize Work time Hours on Calendar with Scheduler
The Day View of KetticScheduler control allows the users to predefine a range of hours to indicate the work time 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.
Display and Hide the Day Headers in Scheduler
To display and hide the day headers on Calendar, we can enable the property, DisplayHeader, of the KetticScheduler control as below.
Customize Day Header 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.
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, use the C# code below.
Modify the Height of Ruler and Row in Scheduler
The day view of the KetticScheduler provides the RulerScaleSize property to modify the height of the ruler as well as the row. The C# code below demonstrates how to achieve this.
Change the Ruler Width with KetticScheduler
The 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.
C# Set Start and End Times for Calendar with Scheduler
To set the start and end times shown on your Calendar by using KetticScheduler control, 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.
Set Ruler Time Format for Calendar in Scheduler
The 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.
Display and Hide Ruler on Calendar in Scheduler
To display and hide the ruler, enable or disable the DisplayRuler property in Scheduler
|
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 |