Class SchedulerDayViewBase
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class SchedulerDayViewBase : SchedulerView, INotifyPropertyChanged, IDisposable
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.
Declaration
public bool AutoScrollToWorkTime { get; set; }
Property Value
System.Boolean
|
CanSetDayCount
Gets a value indicating whether this instance can set day count.
Declaration
public virtual bool CanSetDayCount { get; }
Property Value
System.Boolean
|
CurrentTime
Gets or sets a value indicating to what the view is scrolled.
Declaration
protected TimeSpan CurrentTime { get; set; }
Property Value
System.TimeSpan
|
DayCount
Gets or sets the day count.
Declaration
public abstract int DayCount { get; set; }
Property Value
System.Int32
The day count. |
DefaultTimeZone
Declaration
public override SchedulerTimeZone DefaultTimeZone { get; set; }
Property Value
SchedulerTimeZone
|
Overrides
RangeFactor
Gets or sets the range factor.
Declaration
public ScaleRange RangeFactor { get; set; }
Property Value
ScaleRange
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.
Declaration
public int RulerEndScale { get; set; }
Property Value
System.Int32
|
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.
Declaration
public int RulerEndScaleMinutes { get; set; }
Property Value
System.Int32
|
RulerFormatStrings
Gets or sets the ruler time format.
Declaration
public virtual RulerFormatStrings RulerFormatStrings { get; set; }
Property Value
RulerFormatStrings
The ruler time format. |
RulerScaleSize
Gets or sets the size of the ruler scale.
Declaration
public virtual int RulerScaleSize { get; set; }
Property Value
System.Int32
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.
Declaration
public int RulerStartScale { get; set; }
Property Value
System.Int32
|
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.
Declaration
public int RulerStartScaleMinutes { get; set; }
Property Value
System.Int32
|
RulerWidth
Gets or sets the width of the ruler.
Declaration
public int RulerWidth { get; set; }
Property Value
System.Int32
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
System.Boolean
|
ShowRuler
Gets or sets a value indicating whether the ruler is shown.
Declaration
public virtual bool ShowRuler { get; set; }
Property Value
System.Boolean
|
TimeZones
Gets the time zones collection.
Declaration
public SchedulerTimeZoneCollection TimeZones { get; }
Property Value
SchedulerTimeZoneCollection
The time zones collection. |
WorkTime
Gets or sets the work time.
Declaration
public virtual TimeInterval WorkTime { get; set; }
Property Value
TimeInterval
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
ItemObservableCollection<WorkTimeExceptionRule>
|
WorkWeekEnd
Gets or sets the last day of the working week.
Declaration
public DayOfWeek WorkWeekEnd { get; set; }
Property Value
System.DayOfWeek
|
WorkWeekStart
Gets or sets the first day of the working week.
Declaration
public DayOfWeek WorkWeekStart { get; set; }
Property Value
System.DayOfWeek
|
Methods
CopyPropertiesToView(SchedulerView)
Copies the properties to view.
Declaration
protected override void CopyPropertiesToView(SchedulerView other)
Parameters
SchedulerView
other
The other. |
Overrides
CreateViewWithStartDate(DateTime)
Creates the view with start date.
Declaration
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
Parameters
System.DateTime
startDate
The start date. |
Returns
SchedulerView
|
Overrides
Dispose()
Declaration
public void Dispose()
Implements
GetColumnForDate(DateTime)
Gets the column index corresponding to a given date.
Declaration
public virtual int GetColumnForDate(DateTime dateTime)
Parameters
System.DateTime
dateTime
The date. |
Returns
System.Int32
The corresponding index. |
GetDateForCell(Int32, Int32)
Gets the date that corresponds to a cell.
Declaration
public virtual DateTime GetDateForCell(int row, int column)
Parameters
System.Int32
row
The row index of the cell. |
System.Int32
column
The column index of the cell. |
Returns
System.DateTime
The corresponding date. |
GetDateForCell(Int32, Int32, RadScheduler)
Gets the date that corresponds to a cell.
Declaration
public virtual DateTime GetDateForCell(int row, int column, RadScheduler scheduler)
Parameters
System.Int32
row
The row index of the cell. |
System.Int32
column
The column index of the cell. |
RadScheduler
scheduler
The scheduler |
Returns
System.DateTime
The corresponding date. |
GetDateForColumn(Int32)
Gets the date that corresponds to a column.
Declaration
public virtual DateTime GetDateForColumn(int column)
Parameters
System.Int32
column
The column index. |
Returns
System.DateTime
The corresponding date. |
GetDateForColumn(Int32, RadScheduler)
Gets the date that corresponds to a column.
Declaration
public virtual DateTime GetDateForColumn(int column, RadScheduler scheduler)
Parameters
System.Int32
column
The column index. |
RadScheduler
scheduler
The scheduler |
Returns
System.DateTime
The corresponding date. |
GetEndDate(DateTime)
Gets the end date for that SchedulerView given a start date.
Declaration
protected override DateTime GetEndDate(DateTime startDate)
Parameters
System.DateTime
startDate
The start date. |
Returns
System.DateTime
|
Overrides
GetNextView(Int32)
Gets the next view.
Declaration
public override SchedulerView GetNextView(int offset)
Parameters
System.Int32
offset
The offset. |
Returns
SchedulerView
|
Overrides
GetNextView(NavigationStepTypes, Int32)
GetNumberOfCellsPerHour()
Gets the number of cells per hour.
Declaration
public int GetNumberOfCellsPerHour()
Returns
System.Int32
|
GetPreviousView(Int32)
Gets the previous view.
Declaration
public override SchedulerView GetPreviousView(int offset)
Parameters
System.Int32
offset
The offset. |
Returns
SchedulerView
|
Overrides
GetPreviousView(NavigationStepTypes, Int32)
GetRowsCount()
Gets the calculated number of rows according to the RulerStartScale, RulerStartScaleMinutes, RulerEndScale and RulerEndScaleMinutes properties.
Declaration
public int GetRowsCount()
Returns
System.Int32
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
System.DateTime
date
DateTime object that is used to create the Scheduler View. |
Returns
SchedulerView
The created Scheduler View object. |
Overrides
IsWorkingDay(DayOfWeek)
Checks if a given week day is a working day.
Declaration
public bool IsWorkingDay(DayOfWeek dayOfWeek)
Parameters
System.DayOfWeek
dayOfWeek
The week day. |
Returns
System.Boolean
[true] if the week day is a working day, [false] otherwise. |
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.
Declaration
public virtual bool IsWorkTime(DateTime cellDate)
Parameters
System.DateTime
cellDate
The date. |
Returns
System.Boolean
[true] if the date is work time, [false] otherwise. |
UpdateOnPropertyChange(String)
Called when a property is changed.
Declaration
protected override void UpdateOnPropertyChange(string propertyName)
Parameters
System.String
propertyName
Name of the property. |