Displays a selected set of date intervals as columns in a Scheduler view.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerMultiDayView : SchedulerDayViewBase, INotifyPropertyChanged, IDisposable, IListChangeHandler<DateTimeInterval>
Inheritance: objectSchedulerViewSchedulerDayViewBaseSchedulerMultiDayView
Implements:
Inherited Members
Constructors
Initializes the view with the current day as its default interval.
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.
Initializes the view and adds the specified intervals to its interval collection.
public SchedulerMultiDayView(IEnumerable<DateTimeInterval> intervals)
The intervals to display.
Exceptions: ArgumentNullExceptionintervals is null.
Fields
The lazily created collection of intervals configured for this view.
protected DateTimeIntervalCollection intervalCollection
Properties
Gets the number of days in the view. Setting this property has no effect in SchedulerMultiDayView.
public override int DayCount { get; set; }
Overrides:
Gets the end of the last visible interval, extending a non-midnight end to the last second of that day.
public override DateTime EndDate { get; }
Overrides:
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.
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.
public override DateTime StartDate { get; set; }
Overrides:
Gets the type of the view.
public override SchedulerViewType ViewType { get; }
The type of the view.
Overrides:
Methods
Creates a view beginning on the specified date and spanning the current number of visible days.
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
The first date in the new view.
Returns:A multi-day view with the current view's settings.
Overrides:
Gets appointments whose event intervals intersect the specified interval. All-day appointments are treated as occupying the full end date.
public virtual List<IEvent> GetAppointmentsInInterval(DateTimeInterval interval)
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.
Creates a view offset from this one, where an offset of one begins on the day after this view ends.
public override SchedulerView GetNextView(int offset)
The number of view spans to move.
Returns:The offset view.
Overrides:
Returns this view when the date is visible; otherwise delegates to the base view lookup.
public override SchedulerView GetViewContainingDate(DateTime date)
The date to locate.
Returns:This view for a visible date; otherwise, the view produced by the base lookup.
Overrides:
Gets the configured intervals, or the view's default interval when the configured collection is empty.
public DateTimeIntervalCollection GetVisibleIntervals()
The intervals used to determine visible dates.
Determines whether an appointment intersects a visible interval and the view's selected resources.
Returns this instance without applying the requested offset.
public override SchedulerView OffsetView(int offset)
The requested offset, which is not applied by this implementation.
Returns:This view instance.
Overrides:
Clears cached visible dates before notifying listeners of view property changes.
protected override void OnPropertyChanged(params string[] propertyNames)
The names of the changed properties.
Overrides: