- Online Barcode Generator
- How To
- Buy Now
C# Customize WeekView in KetticScheduler Control
The WeekView mode of KetticScheduler control allows the developers to build week view in their Windows Forms application. This feature is capable of showing the entire seven days a week, from Monday to Sunday, or hiding the weedends. The users of your application are allowed to select the start day of a week in the view mode, for example, setting the Monday or Sunday to be the first day in the week view. In addition, this week view mode allows the users to move to the previous week or the coming week through the back and forward keyboard arrows.
C# Setting Week View on Calendar with Scheduler
KetticScheduler control contains various views available. To set the view mode to WeekView, we can use the C# code snippet as below.
C# Get Week View in Scheduler for Windows Forms
When we set the week view in KetticScheduler, we can use the GetWeekView method to get the instance to the SchedulerWeek. The C# code snippet below demonstrates how to get the C# method.
If we set the ActiveView property beyond the SchedulerWeekView in scheduler, this method will returns null. The C# code below demonstrates the setting of ActiveView property in KetticScheduler control for Windows application.
Display or Hide the weekend in Week View
The Week View mode of Scheduler allows the users display or hide the weekend in the week view. This is achieved via the DisplayWeekend property and the default setting shows the weekend. The C# code below disables the property to hide the weekend.
C# Set Work time Hours on Calendar with Scheduler
The WeekView mode of KetticScheduler supports a range of hours predefined in timeline 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 highligted with a slightly different color. The C# code below demonstrates how to set the work time hours through the TimeInterval property.
C# Display/Hide the Day Headers in Scheduler
To show or hide the day headers on Calendar, we can enable the property, DisplayHeader, of the KetticScheduler control as the C# code 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.
Setting Ruler Scale for WeekView 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.
Set Height to Ruler and Row in Scheduler
The week view of the KetticScheduler provides the RulerScaleSize property to customize the height of the ruler as well as the row. The C# code below demonstrates the height size customization.
C# Set Ruler Width in KetticScheduler
The week 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 the setting.
Format Ruler Time for Calendar in Scheduler
The week 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 Design
WinForms UI Controls