SchedulerView
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class SchedulerView : INotifyPropertyChanged
Inheritance: objectSchedulerView
Derived Classes:
Implements:
Constructors
public SchedulerView()
Fields
protected DateTime? nullableStartDate
Properties
Enables or disables appointment moving
public virtual bool AllowAppointmentMove { get; set; }
Enables or disables appointment resizing
public virtual bool AllowAppointmentResize { get; set; }
Gets or sets whether the horizontal scrollbar when the scheduler is grouped by resources is shown.
public bool AllowResourcesScrolling { get; set; }
Gets or sets whether tool tips are displayed for this speciffic control.
public virtual bool AllowToolTips { get; set; }
Gets the appointments for that view.
public SchedulerObservableCollection Appointments { get; }
The appointments for that view.
Gets or sets the appointment title format.
public string AppointmentTitleFormat { get; set; }
The appointment title format.
Gets or sets the format string that is applied to the days cells tooltip.
public string CellToolTipFormat { get; set; }
The property should contain either a format specifier character or a custom format pattern. For more information, see the summary page for System.Globalization.DateTimeFormatInfo.
By default this property uses formatting string of 'dddd, MMMM dd, yyyy'. Valid formats are all supported by the .NET Framework.
Example:
- "d" is the standard short date pattern.
- "%d" returns the day of the month; "%d" is a custom pattern.
- "d " returns the day of the month followed by a white-space character; "d " is a custom pattern.
Gets or sets a DateTime value specifying the starting date for the period handled by a SchedulerView instance.
protected virtual DateTime? CurrentDate { get; set; }
Gets or sets the offset time span.
[Browsable(false)]
public virtual SchedulerTimeZone DefaultTimeZone { get; set; }
The offset time span.
Gets or sets the separator width between different groups
public int GroupSeparatorWidth { get; set; }
Gets or sets the offset time span.
[Browsable(false)]
public virtual TimeSpan OffsetTimeSpan { get; set; }
The offset time span.
Gets or sets a value indicating whether the view is in read-only mode.
public virtual bool ReadOnly { get; set; }
Gets or sets the resources shown in the current view.
public int ResourcesPerView { get; set; }
Gets the parent RadScheduler that the current view is assigned to.
[Browsable(false)]
public RadScheduler Scheduler { get; }
Gets or sets whether a single SchedulerView object will display a header row.
public virtual bool ShowHeader { get; set; }
Gets or sets a DateTime value specifying the starting date for the period handled by a SchedulerView instance.
public virtual DateTime StartDate { get; set; }
public abstract SchedulerViewType ViewType { get; }
Methods
Adds the appointment.
protected virtual void AddAppointment(IEvent appointment)
The appointment.
protected virtual void AddResources(SchedulerResourceCollection resources)
Creates a SchedulerView given the desired type.
public static SchedulerView CreateView(SchedulerViewType value)
The view type.
Returns:protected abstract SchedulerView CreateViewWithStartDate(DateTime startDate)
Gets the first appointment in this view, if any.
public IEvent GetFirstAppointment()
The first appointment in this view, or null of there are no appointments.
Gets the last appointment in this view, if any.
public IEvent GetLastAppointment()
The last appointment in this view, or null of there are no appointments.
Gets the next view.
Gets the next view.
Gets the next view.
public abstract SchedulerView GetNextView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Gets the next view containing any of the given appointments.
public virtual SchedulerView GetNextViewWithAppointments(IEnumerable<IEvent> appointments)
Gets the previous view.
Gets the previous view.
public abstract SchedulerView GetPreviousView(int offset)
The offset.
Returns:Gets the previous view.
public abstract SchedulerView GetPreviousView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Gets the previous view containing any of the given appointments.
public virtual SchedulerView GetPreviousViewWithAppointments(IEnumerable<IEvent> appointments)
Gets the view containing date.
public abstract SchedulerView GetViewContainingDate(DateTime date)
The date.
Returns:Determines if a DateTime object belongs to the dates range managed by a particular SchedulerView.
Offsets the view.
protected virtual void OnPropertyChanged(params string[] propertyNames)
protected virtual void SetDefaultTimeZone(SchedulerTimeZone defaultTimeZone)
Updates the appointments for that view.
public virtual void UpdateAppointments(ObservableCollection<IEvent> appointments)
The appointments for that view.
Events
public event PropertyChangedEventHandler PropertyChanged
Implements: