ClassSchedulerDayViewBase
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
SchedulerDayViewBase()
Initializes a new instance of the SchedulerDayViewBase class.
Declaration
public SchedulerDayViewBase()
Properties
AutoScrollToWorkTime
Gets or sets a value indicating whether to automatically scroll to the work time.
CanSetDayCount
Gets a value indicating whether this instance can set day count.
Declaration
public virtual bool CanSetDayCount { get; }
Property Value
true if this instance can set day count; otherwise, false.
CurrentTime
Gets or sets a value indicating to what the view is scrolled.
DayCount
Gets or sets the day count.
Declaration
public abstract int DayCount { get; set; }
Property Value
The day count.
DefaultTimeZone
Gets or sets the offset time span.
Declaration
public override SchedulerTimeZone DefaultTimeZone { get; set; }
Property Value
The offset time span.
Overrides
RangeFactor
Gets or sets the range factor.
Declaration
public ScaleRange RangeFactor { get; set; }
Property Value
The range factor.
RulerEndScale
Gets or sets the last hour which the ruler in day view should display. To set minutes use the RulerEndScaleMinutes property.
RulerEndScaleMinutes
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.
RulerFormatStrings
Gets or sets the ruler time format.
Declaration
public virtual RulerFormatStrings RulerFormatStrings { get; set; }
Property Value
The ruler time format.
RulerScaleSize
Gets or sets the size of the ruler scale.
Declaration
public virtual int RulerScaleSize { get; set; }
Property Value
The size of the ruler scale.
RulerStartScale
Gets or sets the first hour which the ruler in day view should display. To set minutes use the RulerStartScaleMinutes property.
RulerStartScaleMinutes
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.
RulerWidth
Gets or sets the width of the ruler.
Declaration
public int RulerWidth { get; set; }
Property Value
The width of the ruler.
ShowAllDayArea
Gets or sets a value indicating whether the all day area is shown.
Declaration
public virtual bool ShowAllDayArea { get; set; }
Property Value
true if the all day area is shown; otherwise, false.
ShowRuler
Gets or sets a value indicating whether the ruler is shown.
Declaration
public virtual bool ShowRuler { get; set; }
Property Value
true if the ruler is shown; otherwise, false.
TimeZones
Gets the time zones collection.
Declaration
public SchedulerTimeZoneCollection TimeZones { get; }
Property Value
The time zones collection.
WorkTime
Gets or sets the work time.
Declaration
public virtual TimeInterval WorkTime { get; set; }
Property Value
The work time.
WorkTimeExceptions
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.
Declaration
public ItemObservableCollection<WorkTimeExceptionRule> WorkTimeExceptions { get; }
Property Value
WorkWeekEnd
Gets or sets the last day of the working week.
WorkWeekStart
Gets or sets the first day of the working week.
Methods
CopyPropertiesToView(SchedulerView)
Copies the properties to view.
Declaration
protected override void CopyPropertiesToView(SchedulerView other)
Parameters
other
The other.
Overrides
CreateViewWithStartDate(DateTime)
Creates the view with start date.
Declaration
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
Parameters
startDate
The start date.
Returns
Overrides
Dispose()
Declaration
public void Dispose()
Implements
GetColumnForDate(DateTime)
Gets the column index corresponding to a given date.
GetDateForCell(int, int)
Gets the date that corresponds to a cell.
GetDateForCell(int, int, RadScheduler)
Gets the date that corresponds to a cell.
Declaration
public virtual DateTime GetDateForCell(int row, int column, RadScheduler scheduler)
Parameters
row
The row index of the cell.
column
The column index of the cell.
scheduler
The scheduler
Returns
The corresponding date.
GetDateForColumn(int)
Gets the date that corresponds to a column.
GetDateForColumn(int, RadScheduler)
Gets the date that corresponds to a column.
Declaration
public virtual DateTime GetDateForColumn(int column, RadScheduler scheduler)
Parameters
column
The column index.
scheduler
The scheduler
Returns
The corresponding date.
GetEndDate(DateTime)
Gets the end date for that SchedulerView given a start date.
GetNextView(NavigationStepTypes, int)
Gets the next view.
Declaration
public override SchedulerView GetNextView(NavigationStepTypes navigationStepType, int navigationStep)
Parameters
navigationStepType
The navigation step type.
navigationStep
The navigation step.
Returns
Overrides
GetNextView(int)
Gets the next view.
Declaration
public override SchedulerView GetNextView(int offset)
Parameters
offset
The offset.
Returns
Overrides
GetNumberOfCellsPerHour()
Gets the number of cells per hour.
GetPreviousView(NavigationStepTypes, int)
Gets the previous view.
Declaration
public override SchedulerView GetPreviousView(NavigationStepTypes navigationStepType, int navigationStep)
Parameters
navigationStepType
The navigation step type.
navigationStep
The navigation step.
Returns
Overrides
GetPreviousView(int)
Gets the previous view.
Declaration
public override SchedulerView GetPreviousView(int offset)
Parameters
offset
The offset.
Returns
Overrides
GetRowsCount()
Gets the calculated number of rows according to the RulerStartScale, RulerStartScaleMinutes, RulerEndScale and RulerEndScaleMinutes properties.
Declaration
public int GetRowsCount()
Returns
The number of rows that need to be displayed.
GetViewContainingDate(DateTime)
Creates a Scheduler View object based on the logic implemented by the Scheduler View instance that implements the method.
Declaration
public override SchedulerView GetViewContainingDate(DateTime date)
Parameters
date
DateTime object that is used to create the Scheduler View.
Returns
The created Scheduler View object.
Overrides
IsWorkTime(DateTime)
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.
IsWorkingDay(DayOfWeek)
Checks if a given week day is a working day.
UpdateOnPropertyChange(string)
Called when a property is changed.
Declaration
protected override void UpdateOnPropertyChange(string propertyName)
Parameters
propertyName
Name of the property.
Overrides