Class SchedulerView
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class SchedulerView : INotifyPropertyChanged
Constructors
SchedulerView()
Declaration
public SchedulerView()
Fields
nullableStartDate
Declaration
protected DateTime? nullableStartDate
Field Value
System.
|
Properties
AllowAppointmentMove
Enables or disables appointment moving
Declaration
public virtual bool AllowAppointmentMove { get; set; }
Property Value
System.
|
AllowAppointmentResize
Enables or disables appointment resizing
Declaration
public virtual bool AllowAppointmentResize { get; set; }
Property Value
System.
|
AllowResourcesScrolling
Gets or sets whether the horizontal scrollbar when the scheduler is grouped by resources is shown.
Declaration
public bool AllowResourcesScrolling { get; set; }
Property Value
System.
|
AllowToolTips
Gets or sets whether tool tips are displayed for this speciffic control.
Declaration
public virtual bool AllowToolTips { get; set; }
Property Value
System.
|
Appointments
Gets the appointments for that view.
Declaration
public SchedulerObservableCollection Appointments { get; }
Property Value
Scheduler The appointments for that view. |
AppointmentTitleFormat
Gets or sets the appointment title format.
Declaration
public string AppointmentTitleFormat { get; set; }
Property Value
System. The appointment title format. |
CellToolTipFormat
Gets or sets the format string that is applied to the days cells tooltip.
Declaration
public string CellToolTipFormat { get; set; }
Property Value
System.
|
Remarks
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.
CurrentCulture
Gets or sets the current culture that is used by this SchedulerView.
Declaration
public CultureInfo CurrentCulture { get; set; }
Property Value
System. The current culture. |
CurrentDate
Gets or sets a DateTime value specifying the starting date for the period handled by a SchedulerView instance.
Declaration
protected virtual DateTime? CurrentDate { get; set; }
Property Value
System.
|
DefaultTimeZone
Gets or sets the offset time span.
Declaration
public virtual SchedulerTimeZone DefaultTimeZone { get; set; }
Property Value
Scheduler The offset time span. |
EndDate
Declaration
public virtual DateTime EndDate { get; }
Property Value
System.
|
GroupSeparatorWidth
Gets or sets the separator width between different groups
Declaration
public int GroupSeparatorWidth { get; set; }
Property Value
System.
|
Name
Gets or sets the name of the view.
Declaration
public virtual string Name { get; set; }
Property Value
System.
|
OffsetTimeSpan
Gets or sets the offset time span.
Declaration
public virtual TimeSpan OffsetTimeSpan { get; set; }
Property Value
System. The offset time span. |
ReadOnly
Gets or sets a value indicating whether the view is in read-only mode.
Declaration
public virtual bool ReadOnly { get; set; }
Property Value
System.
|
ResourcesPerView
Gets or sets the resources shown in the current view.
Declaration
public int ResourcesPerView { get; set; }
Property Value
System.
|
Scheduler
Gets the parent RadScheduler that the current view is assigned to.
Declaration
public RadScheduler Scheduler { get; }
Property Value
ShowHeader
Gets or sets whether a single SchedulerView object will display a header row.
Declaration
public virtual bool ShowHeader { get; set; }
Property Value
System.
|
StartDate
Gets or sets a DateTime value specifying the starting date for the period handled by a SchedulerView instance.
Declaration
public virtual DateTime StartDate { get; set; }
Property Value
System.
|
ViewType
Visible
Gets or sets a value indicating whether the view is visible or partially visible.
Declaration
public bool Visible { get; set; }
Property Value
System.
|
Methods
AddAppointment(IEvent)
Adds the appointment.
Declaration
protected virtual void AddAppointment(IEvent appointment)
Parameters
IEvent
appointment
The appointment. |
AddResources(SchedulerResourceCollection)
Declaration
protected virtual void AddResources(SchedulerResourceCollection resources)
Parameters
Scheduler
|
AppointmentChanged(IEvent, String)
Declaration
protected virtual void AppointmentChanged(IEvent appointment, string propertyName)
Parameters
IEvent
appointment
|
System.
|
CalculateNextDate(IEnumerable<IEvent>, ref DateTime)
Declaration
protected DateTime CalculateNextDate(IEnumerable<IEvent> appointments, ref DateTime endDate)
Parameters
System.
|
System.
|
Returns
System.
|
CalculatePreviousView(IEnumerable<IEvent>, DateTime)
Declaration
protected virtual SchedulerView CalculatePreviousView(IEnumerable<IEvent> appointments, DateTime startDate)
Parameters
System.
|
System.
|
Returns
CopyPropertiesToView(SchedulerView)
Declaration
protected virtual void CopyPropertiesToView(SchedulerView other)
Parameters
Scheduler
|
CreateView(SchedulerViewType)
Creates a SchedulerView given the desired type.
Declaration
public static SchedulerView CreateView(SchedulerViewType value)
Parameters
Scheduler The view type. |
Returns
CreateViewWithStartDate(DateTime)
Declaration
protected abstract SchedulerView CreateViewWithStartDate(DateTime startDate)
Parameters
System.
|
Returns
GetEndDate(DateTime)
Gets the end date for that SchedulerView given a start date.
Declaration
protected abstract DateTime GetEndDate(DateTime startDate)
Parameters
System. The start date. |
Returns
System.
|
GetFirstAppointment()
Gets the first appointment in this view, if any.
Declaration
public IEvent GetFirstAppointment()
Returns
IEvent
The first appointment in this view, or null of there are no appointments. |
GetLastAppointment()
Gets the last appointment in this view, if any.
Declaration
public IEvent GetLastAppointment()
Returns
IEvent
The last appointment in this view, or null of there are no appointments. |
GetNextView()
GetNextView(Int32)
Gets the next view.
Declaration
public abstract SchedulerView GetNextView(int offset)
Parameters
System. The offset. |
Returns
GetNextView(NavigationStepTypes, Int32)
GetNextViewWithAppointments(IEnumerable<IEvent>)
Gets the next view containing any of the given appointments.
Declaration
public virtual SchedulerView GetNextViewWithAppointments(IEnumerable<IEvent> appointments)
Parameters
System.
|
Returns
GetPreviousView()
GetPreviousView(Int32)
Gets the previous view.
Declaration
public abstract SchedulerView GetPreviousView(int offset)
Parameters
System. The offset. |
Returns
GetPreviousView(NavigationStepTypes, Int32)
GetPreviousViewWithAppointments(IEnumerable<IEvent>)
Gets the previous view containing any of the given appointments.
Declaration
public virtual SchedulerView GetPreviousViewWithAppointments(IEnumerable<IEvent> appointments)
Parameters
System.
|
Returns
GetResource()
GetResourceId()
GetResources()
Declaration
public virtual SchedulerResourceCollection GetResources()
Returns
GetViewContainingDate(DateTime)
Gets the view containing date.
Declaration
public abstract SchedulerView GetViewContainingDate(DateTime date)
Parameters
System. The date. |
Returns
GetViewContainingDate(DateTime, Int32)
Declaration
protected virtual SchedulerView GetViewContainingDate(DateTime date, int viewDayCount)
Parameters
System.
|
System.
|
Returns
IsAllDayEvent(IEvent)
Determines whether the specified event is all day
Declaration
public virtual bool IsAllDayEvent(IEvent appointment)
Parameters
IEvent
appointment
The event |
Returns
System.
|
IsAppointmentInView(IEvent)
Determines whether a given appointment intersects with this view..
Declaration
public virtual bool IsAppointmentInView(IEvent appointment)
Parameters
IEvent
appointment
The appointment. |
Returns
System.
|
IsDateInView(DateTime)
Determines if a DateTime object belongs to the dates range managed by a particular SchedulerView.
Declaration
public virtual bool IsDateInView(DateTime date)
Parameters
System. The DateTime object to be tested. |
Returns
System. True if the DateTime object belongs to the dates range managed by a particular SchedulerView; False otherwise. |
IsResourceIntersectsWithViewResources(IEvent)
Declaration
protected virtual bool IsResourceIntersectsWithViewResources(IEvent appointment)
Parameters
IEvent
appointment
|
Returns
System.
|
IsViewInAccessibleInterval(DateTime)
Declaration
protected virtual bool IsViewInAccessibleInterval(DateTime startDate)
Parameters
System.
|
Returns
System.
|
OffsetView(Int32)
Offsets the view.
Declaration
public virtual SchedulerView OffsetView(int offset)
Parameters
System. The offset. |
Returns
OnPropertyChanged(String[])
Declaration
protected virtual void OnPropertyChanged(params string[] propertyNames)
Parameters
System.
|
RemoveAppointment(IEvent)
Declaration
protected virtual void RemoveAppointment(IEvent appointment)
Parameters
IEvent
appointment
|
SetDefaultTimeZone(SchedulerTimeZone)
Declaration
protected virtual void SetDefaultTimeZone(SchedulerTimeZone defaultTimeZone)
Parameters
Scheduler
|
SetStartDate(DateTime)
Declaration
protected virtual bool SetStartDate(DateTime value)
Parameters
System.
|
Returns
System.
|
UpdateAppointments(ObservableCollection<IEvent>)
Updates the appointments for that view.
Declaration
public virtual void UpdateAppointments(ObservableCollection<IEvent> appointments)
Parameters
Observable The appointments for that view. |
UpdateOnPropertyChange(String)
Declaration
protected virtual void UpdateOnPropertyChange(string propertyName)
Parameters
System.
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|