Displays Scheduler appointments along a horizontal time axis with configurable time scales and a bounded date range.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerTimelineView : SchedulerView, INotifyPropertyChanged
Inheritance: objectSchedulerViewSchedulerTimelineView
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerTimelineView class.
public SchedulerTimelineView()
Properties
Gets the time scale that was last shown by the ShowTimescale method. If the method was not called, returns null. Use the GetScaling() method to get the scale that is in active use.
public SchedulerTimescale CurrentScale { get; }
Gets the number of cells configured for the active time scale.
public int DisplayedCellsCount { get; }
Gets the active scale's cell duration used for timeline navigation. Setting this property delegates to the base view, but reads are calculated from the active scale and start date.
public override TimeSpan OffsetTimeSpan { get; set; }
Overrides:
Gets or sets the TimelineView's RangeEndDate.
public DateTime RangeEndDate { get; set; }
Gets or sets the TimelineView's RangeStartDate.
public DateTime RangeStartDate { get; set; }
Gets or sets the TimeScales
public ObservableCollection<SchedulerTimescale> SchedulerTimescales { get; set; }
Gets or sets a value indicating whether to show the horizontal scrollbar in SchedulerTimelineView which stands for navigation through dates.
public bool ShowNavigationElement { get; set; }
Gets or sets a value indicating whether to show the vertical scrollbar in SchedulerTimelineView which stands scrolling through the appointments when a cell overflows.
public bool ShowVerticalScrollBar { get; set; }
Gets or sets the start date.
public override DateTime StartDate { get; set; }
Overrides:
Gets the view tipe.
public override SchedulerViewType ViewType { get; }
Overrides:
Methods
Copies the properties from the current view.
protected override void CopyPropertiesToView(SchedulerView other)
Overrides:
Creates a view which has a specific start date.
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
Overrides:
Gets a list with the days time scales.
Gets the list with default supported formats.
Gets a list with the half hour time scales.
Gets a list with the hours time scales.
Gets a list with the minutes time scales.
Gets a list with the months time scales.
Gets the view with offset from the current view.
Gets the next view.
public override SchedulerView GetNextView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Overrides:
Gets the next view containing any of the given appointments.
public override SchedulerView GetNextViewWithAppointments(IEnumerable<IEvent> appointments)
Overrides:
Gets the previous view.
public override SchedulerView GetPreviousView(int offset)
Overrides:
Gets the previous view.
public override SchedulerView GetPreviousView(NavigationStepTypes navigationStepType, int navigationStep)
The navigation step type.
navigationStepintThe navigation step.
Returns:Overrides:
Gets the previous view containing any of the given appointments.
public override SchedulerView GetPreviousViewWithAppointments(IEnumerable<IEvent> appointments)
Overrides:
Gets the TimelineView's scaling.
Gets the duration, in minutes, of one cell for the specified scale at this view's start date.
public int GetScalingMinutes(SchedulerTimescale scale)
The scale whose cell duration is calculated.
Returns:The cell duration in minutes.
Aligns a date to the start of the year, month, week, day, or hour represented by the scale. Minute-based scales preserve the supplied date and time.
protected virtual DateTime GetStartDateForScale(DateTime date, SchedulerTimescale timeScale)
The date to align.
timeScaleSchedulerTimescaleThe scale that determines the alignment boundary.
Returns:The aligned date, or the original date for minute-based scales.
Gets a Timescale by index.
Gets a SchedulerTimescale by a passed as a parameter scale.
Gets the view which contains a specific date.
public override SchedulerView GetViewContainingDate(DateTime date)
Overrides:
Gets a list with the visible time scales.
public List<SchedulerTimescale> GetVisibleTimescales(Timescales scale)
List<SchedulerTimescale>
Gets a list with the weeks time scales.
Gets a list with the years time scales.
Fires the RefreshNeeded event.
protected virtual void OnRefreshNeeded()
Shows a timescale. The specified scale must be present in the SchedulerTimescales collection.
public void ShowTimescale(SchedulerTimescale timeScale)
The scale to show.
Shows the timescale with the specified type.
public void ShowTimescale(Timescales scale)
The type of the scale to show.
Keeps the visible start date aligned when a property change alters the active scale.
protected override void UpdateOnPropertyChange(string propertyName)
The name of the property that changed.
Overrides:
Events
Occurs when a Refresh is necessary.
public event EventHandler RefreshNeeded