SchedulerWeekView
Displays a calendar week or the configured working-week days, aligned to the current culture.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerWeekView : SchedulerDayViewBase, INotifyPropertyChanged, IDisposable, ISupportShowWeekend
Inheritance: objectSchedulerViewSchedulerDayViewBaseSchedulerWeekView
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerWeekView class.
public SchedulerWeekView()
Initializes the view by aligning startDate to the calendar week or working week.
Properties
Gets the number of displayed days: seven when weekends are shown, or the inclusive configured workweek length otherwise. Assignments are ignored.
[Browsable(false)]
public override int DayCount { get; set; }
The calculated number of visible days.
Overrides:
Gets or sets a value indicating whether weekend days are shown.
public virtual bool ShowWeekend { get; set; }
true if weekend days are shown; otherwise, false.
Implements:
Gets the type of the view.
public override SchedulerViewType ViewType { get; }
The type of the view.
Overrides:
Methods
Aligns a date to the culture's first day of the week, or to WorkWeekStart when weekends are hidden.
Copies the base view settings and the weekend-visibility setting to another week view.
protected override void CopyPropertiesToView(SchedulerView other)
The view receiving the settings.
Overrides:
Creates a week view beginning at the specified date while retaining this view's settings.
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
The date used to determine the new view's week.
Returns:The new week view.
Overrides:
Creates a view shifted forward by the specified number of seven-day weeks.
public override SchedulerView GetNextView(int offset)
The signed number of weeks; positive values move forward and negative values move backward.
Returns:The next week view.
Overrides:
Creates a view shifted backward by the specified number of seven-day weeks.
public override SchedulerView GetPreviousView(int offset)
The signed number of weeks; positive values move backward and negative values move forward.
Returns:The previous week view.
Overrides:
Uses the base view lookup with a seven-day calendar span to select the week for a date. When weekends are hidden, the returned view may not display the requested weekend date.
public override SchedulerView GetViewContainingDate(DateTime date)
The date to locate.
Returns:The current or a newly created view for the date's week.
Overrides:
Aligns a requested start date to the first day of the displayed week and remembers the request when that aligned date changes, allowing it to be realigned if the culture or weekend setting changes.
Re-aligns the remembered requested date when scheduler, culture, or weekend visibility changes, and refreshes appointments when the scheduler or culture changes.
protected override void UpdateOnPropertyChange(string propertyName)
The name of the changed property.
Overrides: