SchedulerDayViewBase
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class SchedulerDayViewBase : SchedulerView, INotifyPropertyChanged, IDisposable
Inheritance: objectSchedulerViewSchedulerDayViewBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerDayViewBase class.
public SchedulerDayViewBase()
Properties
Gets or sets a value indicating whether to automatically scroll to the work time.
public bool AutoScrollToWorkTime { get; set; }
Gets a value indicating whether this instance can set day count.
public virtual bool CanSetDayCount { get; }
true if this instance can set day count; otherwise, false.
Gets or sets a value indicating to what the view is scrolled.
protected TimeSpan CurrentTime { get; set; }
Gets or sets the day count.
public abstract int DayCount { get; set; }
The day count.
Gets or sets the offset time span.
public override SchedulerTimeZone DefaultTimeZone { get; set; }
The offset time span.
Overrides:
Gets or sets the range factor.
public ScaleRange RangeFactor { get; set; }
The range factor.
Gets or sets the last hour which the ruler in day view should display. To set minutes use the RulerEndScaleMinutes property.
public int RulerEndScale { get; set; }
Gets or sets the minutes in addition to the RulerEndScale. Together these properties allow changing the default end of the ruler scale on the left side of day view. The value of this property will snap to the nearest multiple of the RangeFactor.
public int RulerEndScaleMinutes { get; set; }
Gets or sets the ruler time format.
public virtual RulerFormatStrings RulerFormatStrings { get; set; }
The ruler time format.
Gets or sets the size of the ruler scale.
public virtual int RulerScaleSize { get; set; }
The size of the ruler scale.
Gets or sets the first hour which the ruler in day view should display. To set minutes use the RulerStartScaleMinutes property.
public int RulerStartScale { get; set; }
Gets or sets the minutes in addition to the RulerStartScale. Together these properties allow changing the default start of the ruler scale on the left side of day view. The value of this property will snap to the nearest multiple of the RangeFactor.
public int RulerStartScaleMinutes { get; set; }
Gets or sets the width of the ruler.
public int RulerWidth { get; set; }
The width of the ruler.
Gets or sets a value indicating whether the all day area is shown.
public virtual bool ShowAllDayArea { get; set; }
true if the all day area is shown; otherwise, false.
Gets or sets a value indicating whether the ruler is shown.
public virtual bool ShowRuler { get; set; }
true if the ruler is shown; otherwise, false.
Gets the time zones collection.
public SchedulerTimeZoneCollection TimeZones { get; }
The time zones collection.
Gets or sets the work time.
public virtual TimeInterval WorkTime { get; set; }
The work time.
A collection of WorkTimeExceptionRule rules which define exceptions to the general work time provided by the WorkTime property. The rules in this collection are checked in an increasing order of their indices and therefore if a date matches a number of rules, the one with the greatest index overrides the others.
public ItemObservableCollection<WorkTimeExceptionRule> WorkTimeExceptions { get; }
Gets or sets the last day of the working week.
public DayOfWeek WorkWeekEnd { get; set; }
Gets or sets the first day of the working week.
public DayOfWeek WorkWeekStart { get; set; }
Methods
Copies the properties to view.
protected override void CopyPropertiesToView(SchedulerView other)
The other.
Overrides:
Creates the view with start date.
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
The start date.
Returns:Overrides:
public void Dispose()
Implements:
Gets the date that corresponds to a cell.
public virtual DateTime GetDateForCell(int row, int column, RadScheduler scheduler)
The row index of the cell.
columnintThe column index of the cell.
schedulerRadSchedulerThe scheduler
Returns:The corresponding date.
Gets the date that corresponds to a column.
public virtual DateTime GetDateForColumn(int column, RadScheduler scheduler)
The column index.
schedulerRadSchedulerThe scheduler
Returns:The corresponding date.
Gets the next view.
public override SchedulerView GetNextView(int offset)
The offset.
Returns:Overrides:
Gets the next view.
public override SchedulerView GetNextView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Overrides:
Gets the number of cells per hour.
Gets the previous view.
public override SchedulerView GetPreviousView(int offset)
The offset.
Returns:Overrides:
Gets the previous view.
public override SchedulerView GetPreviousView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Overrides:
Gets the calculated number of rows according to the RulerStartScale, RulerStartScaleMinutes, RulerEndScale and RulerEndScaleMinutes properties.
Creates a Scheduler View object based on the logic implemented by the Scheduler View instance that implements the method.
public override SchedulerView GetViewContainingDate(DateTime date)
DateTime object that is used to create the Scheduler View.
Returns:The created Scheduler View object.
Overrides:
Checks if a given date is work time by checking the WorkWeekStart, WorkWeekEnd, WorkTime properties and then by checking the exceptions defined in the WorkTimeExceptions collections.
Called when a property is changed.
protected override void UpdateOnPropertyChange(string propertyName)
Name of the property.
Overrides: