New to Telerik UI for WinForms? Start a free 30-day trial

Displays a calendar range as week rows, with optional weekend columns or a full-month layout.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerMonthView : SchedulerView, INotifyPropertyChanged, ISupportShowWeekend

Inheritance: objectSchedulerViewSchedulerMonthView

Implements: INotifyPropertyChangedISupportShowWeekend

Inherited Members SchedulerView.nullableStartDateSchedulerView.IsAllDayEvent(IEvent)SchedulerView.CreateView(SchedulerViewType)SchedulerView.UpdateAppointments(ObservableCollection<IEvent>)SchedulerView.AddAppointment(IEvent)SchedulerView.RemoveAppointment(IEvent)SchedulerView.AppointmentChanged(IEvent, string)SchedulerView.IsViewInAccessibleInterval(DateTime)SchedulerView.IsDateInView(DateTime)SchedulerView.IsAppointmentInView(IEvent)SchedulerView.IsResourceIntersectsWithViewResources(IEvent)SchedulerView.AddResources(SchedulerResourceCollection)SchedulerView.GetResources()SchedulerView.GetResource()SchedulerView.GetResourceId()SchedulerView.GetViewContainingDate(DateTime, int)SchedulerView.GetPreviousView()SchedulerView.GetNextView()SchedulerView.GetPreviousViewWithAppointments(IEnumerable<IEvent>)SchedulerView.CalculatePreviousView(IEnumerable<IEvent>, DateTime)SchedulerView.GetNextViewWithAppointments(IEnumerable<IEvent>)SchedulerView.CalculateNextDate(IEnumerable<IEvent>, ref DateTime)SchedulerView.GetFirstAppointment()SchedulerView.GetLastAppointment()SchedulerView.SetDefaultTimeZone(SchedulerTimeZone)SchedulerView.OnPropertyChanged(params string[])SchedulerView.DefaultTimeZoneSchedulerView.OffsetTimeSpanSchedulerView.StartDateSchedulerView.CurrentDateSchedulerView.NameSchedulerView.VisibleSchedulerView.ReadOnlySchedulerView.GroupSeparatorWidthSchedulerView.AllowResourcesScrollingSchedulerView.ResourcesPerViewSchedulerView.SchedulerSchedulerView.AppointmentsSchedulerView.AppointmentTitleFormatSchedulerView.EndDateSchedulerView.ShowHeaderSchedulerView.AllowToolTipsSchedulerView.AllowAppointmentResizeSchedulerView.AllowAppointmentMoveSchedulerView.CellToolTipFormatSchedulerView.PropertyChanged...

Constructors

Initializes a new instance of the SchedulerMonthView class.

C#
public SchedulerMonthView()

Initializes a new instance of the SchedulerMonthView class.

C#
public SchedulerMonthView(DateTime startDate, bool showWeekend)
Parameters:startDateDateTime

The start date.

showWeekendbool

if set to true weekend days are shown.

Properties

Gets or sets a value indicating whether the user can scroll the appointments in month cells.

C#
public bool EnableAppointmentsScrolling { get; set; }

Gets or sets a value indicating whether the overflow button is enabled in month cells.

C#
public bool EnableCellOverflowButton { get; set; }

Gets or sets a value indicating whether to enable quick navigation to week view from month view.

C#
public bool EnableWeeksHeader { get; set; }

Gets or sets the end range of the vertical navigator.

C#
public DateTime RangeEndDate { get; set; }

Gets or sets the start range of the vertical navigator.

C#
public DateTime RangeStartDate { get; set; }

Gets or sets the width of the appointments' scrollbars

C#
public int ScrollBarsWidth { get; set; }

Gets or sets a value indicating whether this view should always display exactly one month with the respective number of weeks.

C#
public bool ShowFullMonth { get; set; }

Gets or sets a value indicating whether the vertical navigator should be displayed.

C#
public bool ShowVerticalNavigator { get; set; }

Gets or sets a value indicating whether weekend days are shown.

C#
public virtual bool ShowWeekend { get; set; }
Property Value:

true if weekend days are shown; otherwise, false.

Implements: ISupportShowWeekend.ShowWeekend

Gets or sets a value indicating whether to show the weeks header

C#
public bool ShowWeeksHeader { get; set; }

Gets the type of the view.

C#
public override SchedulerViewType ViewType { get; }
Property Value:

The type of the view.

Overrides: SchedulerView.ViewType

Gets or sets the week count.

C#
public virtual int WeekCount { get; set; }
Property Value:

The week count.

Gets the number of week days displayed.

C#
public virtual int WeekDaysCount { get; }

Gets or sets the last day of the working week.

C#
public DayOfWeek WorkWeekEnd { get; set; }

Implements: ISupportShowWeekend.WorkWeekEnd

Gets or sets the first day of the working week.

C#
public DayOfWeek WorkWeekStart { get; set; }

Implements: ISupportShowWeekend.WorkWeekStart

Methods

Aligns a date to the culture's first day of the week, or to WorkWeekStart when weekends are hidden.

C#
protected virtual DateTime CalculateCorrectStartDate(DateTime date)
Parameters:dateDateTime

The date to align.

Returns:

DateTime

The first displayed date for the containing week.

Copies the properties to view.

C#
protected override void CopyPropertiesToView(SchedulerView other)
Parameters:otherSchedulerView

The other.

Overrides: SchedulerView.CopyPropertiesToView(SchedulerView)

Creates the view with start date.

C#
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
Parameters:startDateDateTime

The start date.

Returns:

SchedulerView

Overrides: SchedulerView.CreateViewWithStartDate(DateTime)

Gets the end date for that SchedulerView given a start date.

C#
protected override DateTime GetEndDate(DateTime startDate)
Parameters:startDateDateTime

The start date.

Returns:

DateTime

Overrides: SchedulerView.GetEndDate(DateTime)

Gets the next view.

C#
public override SchedulerView GetNextView(int offset)
Parameters:offsetint

The offset.

Returns:

SchedulerView

Overrides: SchedulerView.GetNextView(int)

Gets the next view.

C#
public override SchedulerView GetNextView(NavigationStepTypes navigationStepType, int navigationStep)
Parameters:navigationStepTypeNavigationStepTypes

The navigation step type.

navigationStepint

The navigation step.

Returns:

SchedulerView

Overrides: SchedulerView.GetNextView(NavigationStepTypes, int)

Gets the previous view.

C#
public override SchedulerView GetPreviousView(int offset)
Parameters:offsetint

The offset.

Returns:

SchedulerView

Overrides: SchedulerView.GetPreviousView(int)

Gets the previous view.

C#
public override SchedulerView GetPreviousView(NavigationStepTypes navigationStepType, int navigationStep)
Parameters:navigationStepTypeNavigationStepTypes

The navigation step type.

navigationStepint

The navigation step.

Returns:

SchedulerView

Overrides: SchedulerView.GetPreviousView(NavigationStepTypes, int)

Selects the view range for a date. Full-month mode creates a view for that month; otherwise, the base lookup uses the configured week count. A hidden weekend date may not be displayed in the result.

C#
public override SchedulerView GetViewContainingDate(DateTime date)
Parameters:dateDateTime

The date whose view range is requested.

Returns:

SchedulerView

The current or a newly created month view for the date's range.

Overrides: SchedulerView.GetViewContainingDate(DateTime)

Checks if a given week day is a working day.

C#
public bool IsWorkingDay(DayOfWeek dayOfWeek)
Parameters:dayOfWeekDayOfWeek

The week day.

Returns:

bool

[true] if the week day is a working day, [false] otherwise.

Implements: ISupportShowWeekend.IsWorkingDay(DayOfWeek)

Returns this instance for a zero offset; otherwise, shifts by the configured offset interval or by whole months when ShowFullMonth is enabled.

C#
public override SchedulerView OffsetView(int offset)
Parameters:offsetint

The signed number of intervals or months to move.

Returns:

SchedulerView

This instance for zero, or a month view at the shifted date.

Overrides: SchedulerView.OffsetView(int)

Aligns the requested date to the first displayed day of its week and, when that aligned date changes, remembers the request for later realignment if the culture or weekend setting changes.

C#
protected override bool SetStartDate(DateTime value)
Parameters:valueDateTime

The requested date used to determine the displayed range.

Returns:

bool

true if the aligned start date changed; otherwise, false.

Overrides: SchedulerView.SetStartDate(DateTime)

Re-aligns the requested start date when the week count, weekend visibility, scheduler, or culture changes, and refreshes appointments when the scheduler or culture changes.

C#
protected override void UpdateOnPropertyChange(string propertyName)
Parameters:propertyNamestring

The name of the changed property.

Overrides: SchedulerView.UpdateOnPropertyChange(string)