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

Displays a selected set of date intervals as columns in a Scheduler view.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerMultiDayView : SchedulerDayViewBase, INotifyPropertyChanged, IDisposable, IListChangeHandler<DateTimeInterval>

Inheritance: objectSchedulerViewSchedulerDayViewBaseSchedulerMultiDayView

Implements: IDisposableIListChangeHandler<DateTimeInterval>INotifyPropertyChanged

Inherited Members SchedulerDayViewBase.GetPreviousView(NavigationStepTypes, int)SchedulerDayViewBase.GetNextView(NavigationStepTypes, int)SchedulerDayViewBase.GetPreviousView(int)SchedulerDayViewBase.CopyPropertiesToView(SchedulerView)SchedulerDayViewBase.GetEndDate(DateTime)SchedulerDayViewBase.UpdateOnPropertyChange(string)SchedulerDayViewBase.GetDateForColumn(int, RadScheduler)SchedulerDayViewBase.GetDateForCell(int, int, RadScheduler)SchedulerDayViewBase.GetDateForCell(int, int)SchedulerDayViewBase.GetNumberOfCellsPerHour()SchedulerDayViewBase.GetRowsCount()SchedulerDayViewBase.IsWorkingDay(DayOfWeek)SchedulerDayViewBase.IsWorkTime(DateTime)SchedulerDayViewBase.Dispose()SchedulerDayViewBase.RulerStartScaleMinutesSchedulerDayViewBase.RulerEndScaleMinutesSchedulerDayViewBase.WorkTimeExceptionsSchedulerDayViewBase.WorkWeekStartSchedulerDayViewBase.WorkWeekEndSchedulerDayViewBase.DefaultTimeZoneSchedulerDayViewBase.AutoScrollToWorkTimeSchedulerDayViewBase.RulerScaleSizeSchedulerDayViewBase.RulerFormatStringsSchedulerDayViewBase.WorkTimeSchedulerDayViewBase.ShowRulerSchedulerDayViewBase.RulerStartScaleSchedulerDayViewBase.RulerEndScaleSchedulerDayViewBase.RulerWidthSchedulerDayViewBase.TimeZonesSchedulerDayViewBase.RangeFactorSchedulerDayViewBase.CurrentTimeSchedulerDayViewBase.ShowAllDayAreaSchedulerDayViewBase.CanSetDayCountSchedulerView.nullableStartDateSchedulerView.IsAllDayEvent(IEvent)SchedulerView.CreateView(SchedulerViewType)SchedulerView.UpdateAppointments(ObservableCollection<IEvent>)SchedulerView.AddAppointment(IEvent)SchedulerView.RemoveAppointment(IEvent)SchedulerView.AppointmentChanged(IEvent, string)SchedulerView.IsViewInAccessibleInterval(DateTime)SchedulerView.SetStartDate(DateTime)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.OffsetTimeSpanSchedulerView.CurrentDateSchedulerView.NameSchedulerView.VisibleSchedulerView.ReadOnlySchedulerView.GroupSeparatorWidthSchedulerView.AllowResourcesScrollingSchedulerView.ResourcesPerViewSchedulerView.SchedulerSchedulerView.AppointmentsSchedulerView.AppointmentTitleFormatSchedulerView.ShowHeaderSchedulerView.AllowToolTipsSchedulerView.AllowAppointmentResizeSchedulerView.AllowAppointmentMoveSchedulerView.CellToolTipFormatSchedulerView.PropertyChanged...

Constructors

Initializes the view with the current day as its default interval.

C#
public SchedulerMultiDayView()

Initializes the view with a default interval spanning the start and end dates. The start is normalized to midnight and the end to the last second of its day.

C#
public SchedulerMultiDayView(DateTime defaultStartDate, DateTime defaultEndDate)
Parameters:defaultStartDateDateTime

The date on which the default interval starts.

defaultEndDateDateTime

The date on which the default interval ends.

Initializes the view and adds the specified intervals to its interval collection.

C#
public SchedulerMultiDayView(IEnumerable<DateTimeInterval> intervals)
Parameters:intervalsIEnumerable<DateTimeInterval>

The intervals to display.

Exceptions: ArgumentNullException

intervals is null.

Fields

The lazily created collection of intervals configured for this view.

C#
protected DateTimeIntervalCollection intervalCollection

Properties

Gets the number of days in the view. Setting this property has no effect in SchedulerMultiDayView.

C#
public override int DayCount { get; set; }

Overrides: SchedulerDayViewBase.DayCount

Gets the end of the last visible interval, extending a non-midnight end to the last second of that day.

C#
public override DateTime EndDate { get; }

Overrides: SchedulerView.EndDate

Gets the intervals displayed by this view. When a scheduler has a nonempty accessible interval, additions outside that interval are rejected. If this collection is empty, the default interval is displayed.

C#
public virtual DateTimeIntervalCollection Intervals { get; }

Gets the calendar date of the first visible interval's start. Setting it moves the configured interval when exactly one is present. With no configured intervals it moves the default interval without populating the configured collection; with multiple intervals it replaces them with the moved default interval. The moved interval's duration is preserved.

C#
public override DateTime StartDate { get; set; }

Overrides: SchedulerView.StartDate

Gets the type of the view.

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

The type of the view.

Overrides: SchedulerView.ViewType

Methods

Creates a view beginning on the specified date and spanning the current number of visible days.

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

The first date in the new view.

Returns:

SchedulerView

A multi-day view with the current view's settings.

Overrides: SchedulerDayViewBase.CreateViewWithStartDate(DateTime)

Gets appointments whose event intervals intersect the specified interval. All-day appointments are treated as occupying the full end date.

C#
public virtual List<IEvent> GetAppointmentsInInterval(DateTimeInterval interval)
Parameters:intervalDateTimeInterval

The interval against which appointments are tested.

Returns:

List<IEvent>

The matching appointments in the view's appointment order.

Gets the column for the specified date. A date in a gap between visible intervals maps to the preceding visible date's column; dates before the first visible date map to column zero, and dates on or after the last visible date map to the last column.

C#
public override int GetColumnForDate(DateTime date)
Parameters:dateDateTime

The date to locate.

Returns:

int

The column index assigned by the visible-date ordering.

Overrides: SchedulerDayViewBase.GetColumnForDate(DateTime)

Gets the date represented by a timeline column, with dates ordered across the visible intervals.

C#
public override DateTime GetDateForColumn(int column)
Parameters:columnint

The zero-based column index.

Returns:

DateTime

The date assigned to that column.

Overrides: SchedulerDayViewBase.GetDateForColumn(int)

Creates a view offset from this one, where an offset of one begins on the day after this view ends.

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

The number of view spans to move.

Returns:

SchedulerView

The offset view.

Overrides: SchedulerDayViewBase.GetNextView(int)

Returns this view when the date is visible; otherwise delegates to the base view lookup.

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

The date to locate.

Returns:

SchedulerView

This view for a visible date; otherwise, the view produced by the base lookup.

Overrides: SchedulerDayViewBase.GetViewContainingDate(DateTime)

Gets the configured intervals, or the view's default interval when the configured collection is empty.

C#
public DateTimeIntervalCollection GetVisibleIntervals()
Returns:

DateTimeIntervalCollection

The intervals used to determine visible dates.

Determines whether an appointment intersects a visible interval and the view's selected resources.

C#
public override bool IsAppointmentInView(IEvent appointment)
Parameters:appointmentIEvent

The appointment to test.

Returns:

bool

true if both interval and resource checks pass; otherwise, false.

Overrides: SchedulerView.IsAppointmentInView(IEvent)

Determines whether the visible intervals contain the specified date.

C#
public override bool IsDateInView(DateTime date)
Parameters:dateDateTime

The date to test.

Returns:

bool

true if a visible interval contains the date; otherwise, false.

Overrides: SchedulerView.IsDateInView(DateTime)

Returns this instance without applying the requested offset.

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

The requested offset, which is not applied by this implementation.

Returns:

SchedulerView

This view instance.

Overrides: SchedulerView.OffsetView(int)

Clears cached visible dates before notifying listeners of view property changes.

C#
protected override void OnPropertyChanged(params string[] propertyNames)
Parameters:propertyNamesstring[]

The names of the changed properties.

Overrides: SchedulerView.OnPropertyChanged(params string[])