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

Represents a calendar view that displays multiple months simultaneously.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class MultiMonthView : MonthView, INotifyPropertyChanged

Inheritance: objectCalendarViewMonthViewMultiMonthView

Implements: INotifyPropertyChanged

Inherited Members MonthView.GetDayHeaderString(int)MonthView.GetToolTip(RadCalendarDay)MonthView.GetToolTip(DateTime)MonthView.GetSpecialDay(DateTime)MonthView.AddViewPeriods(DateTime, int)MonthView.EffectiveVisibleDate()CalendarView.Dispose()CalendarView.IsDateInView(DateTime)CalendarView.Select(DateTime)CalendarView.SelectRange(DateTime[])CalendarView.SelectRange(DateTime, DateTime)CalendarView.GetPreviousViewDate()CalendarView.GetNextViewDate()CalendarView.EnsureChildViews()CalendarView.HandleKeyDown(Keys)CalendarView.OnNotifyPropertyChanged(string)CalendarView.OnNotifyPropertyChanged(PropertyChangedEventArgs)CalendarView.CalendarCalendarView.ParentCalendarView.ChildrenCalendarView.NameCalendarView.CellToolTipFormatCalendarView.OrientationCalendarView.TitleAlignCalendarView.VisibleCalendarView.RootViewCalendarView.IsRootViewCalendarView.LevelCalendarView.ReadOnlyCalendarView.ViewSelectorTextCalendarView.RowHeaderTextCalendarView.ColumnHeaderTextCalendarView.ColumnHeaderImageCalendarView.RowHeaderImageCalendarView.CellMarginCalendarView.CellPaddingCalendarView.ViewSelectorImageCalendarView.ShowOtherMonthsDaysCalendarView.AllowFishEyeCalendarView.ZoomFactorCalendarView.MonthLayoutCalendarView.HeaderWidthCalendarView.HeaderHeightCalendarView.ShowSelectorCalendarView.MultiViewRowsCalendarView.MultiViewColumnsCalendarView.ShowHeaderCalendarView.TitleFormatCalendarView.ShowColumnHeadersCalendarView.ShowRowHeadersCalendarView.AllowRowHeaderSelectorsCalendarView.AllowColumnHeaderSelectorsCalendarView.AllowViewSelectorCalendarView.ViewRenderStartDateCalendarView.ViewRenderEndDateCalendarView.ViewStartDateCalendarView.ViewEndDateCalendarView.RowsCalendarView.ColumnsCalendarView.PreviousViewCalendarView.NextViewCalendarView.CurrentCalendarCalendarView.CellVerticalSpacingCalendarView.CellHorizontalSpacingCalendarView.PropertyChanged...

Constructors

Initializes a multi-month view for a date and attaches it to a parent view.

C#
public MultiMonthView(RadCalendar parent, DateTime inMonthDate, CalendarView parentView)
Parameters:parentRadCalendar

The calendar associated with the view.

inMonthDateDateTime

A date used to determine the months displayed by the view.

parentViewCalendarView

The parent in the calendar view hierarchy, or null for a root view.

Initializes a multi-month view based on the month containing the specified date.

C#
public MultiMonthView(RadCalendar parent, DateTime inMonthDate)
Parameters:parentRadCalendar

The calendar associated with the view.

inMonthDateDateTime

A date used to determine the months displayed by the view.

Initializes a multi-month view associated with a calendar.

C#
public MultiMonthView(RadCalendar parent)
Parameters:parentRadCalendar

The calendar associated with the view.

Properties

Gets a value indicating whether the CalendarView has child views.

C#
public override bool IsMultipleView { get; }

Overrides: MonthView.IsMultipleView

Gets the number of month views hosted by this view.

C#
protected override int MonthsInView { get; }

Overrides: MonthView.MonthsInView

Methods

Creates an uninitialized multi-month view associated with the same calendar.

C#
protected override CalendarView CreateView()
Returns:

CalendarView

Overrides: MonthView.CreateView()

Creates a CalendarView object based on the logic implemented by the CalendarView instance that implements the method.

C#
protected override CalendarView CreateView(DateTime date)
Parameters:dateDateTime

DateTime object that is used to create the CalendarView.

Returns:

CalendarView

The created CalendarView object.

Overrides: MonthView.CreateView(DateTime)

Dates before the supported minimum are replaced with that minimum; dates after the maximum use the date one month before the maximum.

Ensures that this view is the calendar's top-level view before rendering.

C#
protected override void EnsureRenderSettings()
Exceptions: FormatException

Thrown when this view is not the calendar's default view.

Overrides: MonthView.EnsureRenderSettings()

handles the down arrow key.

C#
protected override void HandleDownKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleDownKey(Keys)

Moves focus one day in a vertical layout or one week otherwise; no movement occurs at MaxValue.

handles the End key.

C#
protected override void HandleEndKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleEndKey(Keys)

Moves focus to the last date in the current view.

handles the Home key.

C#
protected override void HandleHomeKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleHomeKey(Keys)

Moves focus to the first date in the current view.

handles the left arrow key.

C#
protected override void HandleLeftKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleLeftKey(Keys)

With Control, moves back one month. Otherwise, moves focus back one week in a vertical layout or one day in other layouts.

handles the page down key.

C#
protected override void HandlePageDownKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandlePageDownKey(Keys)

Moves the focused date forward by one month.

handles the page up key.

C#
protected override void HandlePageUpKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandlePageUpKey(Keys)

Moves the focused date back by one month.

handles the right arrow key.

C#
protected override void HandleRightKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleRightKey(Keys)

With Control, moves forward one month. Otherwise, moves focus forward one week in a vertical layout or one day in other layouts.

handles the up arrow key.

C#
protected override void HandleUpKey(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.HandleUpKey(Keys)

Moves focus one day in a vertical layout or one week otherwise; no movement occurs at MinValue.

Calculates the correct position of the CalendarView

C#
protected virtual void InitializeFocusedViewPosition()

Sets the date bounds of this view from its first and last child month views.

C#
protected override void SetDateRange()

Overrides: MonthView.SetDateRange()

Toogles the date selection (Enter key).

C#
protected override void ToggleSelection(Keys keys)
Parameters:keysKeys

The key data to be processed.

Overrides: MonthView.ToggleSelection(Keys)

Does nothing when the calendar is read-only. Otherwise, raises the selection-changing event, which can cancel the toggle; a canceled toggle does not raise the selection-changed event. If allowed, toggles the focused date in SelectedDates. In single-selection mode, an existing selection is cleared before the toggle.