MultiMonthView
Represents a calendar view that displays multiple months simultaneously.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class MultiMonthView : MonthView, INotifyPropertyChanged
Inheritance: objectCalendarViewMonthViewMultiMonthView
Implements:
Inherited Members
Constructors
Initializes a multi-month view for a date and attaches it to a parent view.
public MultiMonthView(RadCalendar parent, DateTime inMonthDate, CalendarView parentView)
The calendar associated with the view.
inMonthDateDateTimeA date used to determine the months displayed by the view.
parentViewCalendarViewThe 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.
public MultiMonthView(RadCalendar parent, DateTime inMonthDate)
The calendar associated with the view.
inMonthDateDateTimeA date used to determine the months displayed by the view.
Initializes a multi-month view associated with a calendar.
public MultiMonthView(RadCalendar parent)
The calendar associated with the view.
Properties
Gets a value indicating whether the CalendarView has child views.
public override bool IsMultipleView { get; }
Overrides:
Gets the number of month views hosted by this view.
protected override int MonthsInView { get; }
Overrides:
Methods
Creates an uninitialized multi-month view associated with the same calendar.
Creates a CalendarView object based on the logic implemented by the CalendarView instance that implements the method.
protected override CalendarView CreateView(DateTime date)
DateTime object that is used to create the CalendarView.
Returns:The created CalendarView object.
Overrides:
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.
protected override void EnsureRenderSettings()
Thrown when this view is not the calendar's default view.
Overrides:
handles the End key.
protected override void HandleEndKey(Keys keys)
The key data to be processed.
Overrides:
Moves focus to the last date in the current view.
handles the Home key.
protected override void HandleHomeKey(Keys keys)
The key data to be processed.
Overrides:
Moves focus to the first date in the current view.
handles the left arrow key.
protected override void HandleLeftKey(Keys keys)
The key data to be processed.
Overrides:
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.
protected override void HandlePageDownKey(Keys keys)
The key data to be processed.
Overrides:
Moves the focused date forward by one month.
handles the page up key.
protected override void HandlePageUpKey(Keys keys)
The key data to be processed.
Overrides:
Moves the focused date back by one month.
handles the right arrow key.
protected override void HandleRightKey(Keys keys)
The key data to be processed.
Overrides:
With Control, moves forward one month. Otherwise, moves focus forward one week in a vertical layout or one day in other layouts.
Calculates the correct position of the CalendarView
protected virtual void InitializeFocusedViewPosition()
Sets the date bounds of this view from its first and last child month views.
protected override void SetDateRange()
Overrides:
Toogles the date selection (Enter key).
protected override void ToggleSelection(Keys keys)
The key data to be processed.
Overrides:
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.