ClassTimelineGroupingByResourcesElement
Represents the main visual element of RadScheduler when the active view is SchedulerTimelineView and resource-based grouping is enabled, providing a layout that organizes appointments by resource rows in a timeline format.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class TimelineGroupingByResourcesElement : SchedulerViewGroupedByResourceElement<SchedulerTimelineViewElement>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerViewElementSchedulerViewGroupedByResourceElementBaseSchedulerViewGroupedByResourceElement<SchedulerTimelineViewElement>TimelineGroupingByResourcesElement
Implements:
Inherited Members
Constructors
TimelineGroupingByResourcesElement(RadScheduler, SchedulerView)
Initializes a new instance of the TimelineGroupingByResourcesElement class with the specified scheduler control and view configuration, setting up resource-based timeline grouping layout.
Declaration
public TimelineGroupingByResourcesElement(RadScheduler scheduler, SchedulerView view)
Parameters
scheduler
The RadScheduler control that owns this view element.
view
The SchedulerView that this element represents.
Properties
ResourceHeaderWidth
Gets or sets the width in pixels of the resource header section that displays resource names and identifiers along the left side of the timeline view.
ResourceScrollBar
Gets the vertical scrollbar element used for navigating across resource rows when the number of resources exceeds the available display height in the timeline view.
Declaration
public override RadScrollBarElement ResourceScrollBar { get; }
Property Value
Overrides
Methods
ApplyChildViewVisualSettings(SchedulerTimelineViewElement)
Applies visual settings to a child timeline view element, including background colors and gradient styles based on the associated resource.
Declaration
protected override void ApplyChildViewVisualSettings(SchedulerTimelineViewElement childView)
Parameters
childView
The SchedulerTimelineViewElement to apply visual settings to.
Overrides
ArrangeOverride(SizeF)
Arranges all child elements within the available space, positioning resource rows, separators, headers, and scrollbars according to the timeline resource-grouped layout.
CreateChildElements()
Creates the child elements and sets the CSS class specific to the timeline resource grouping element.
Declaration
protected override void CreateChildElements()
Overrides
CreateChildView(int)
Creates a child timeline view for the specified resource index, configuring it with the appropriate resource assignments and timeline-specific properties.
Declaration
protected override SchedulerView CreateChildView(int resourceIndex)
Parameters
resourceIndex
The index of the resource to create a view for.
Returns
A new SchedulerView configured for the specified resource, or null if the resource index is invalid.
Overrides
CreateChildViewElement(int, int, SchedulerView)
Creates a child timeline view element for the specified resource, configuring it according to the parent timeline view settings and resource-specific properties.
Declaration
protected override SchedulerTimelineViewElement CreateChildViewElement(int resourcesStartIndex, int childIndex, SchedulerView childView)
Parameters
resourcesStartIndex
The starting index of resources for this child view.
childIndex
The index of this child view among all child views.
childView
The SchedulerView that this child element will represent.
Returns
A new SchedulerTimelineViewElement configured for the resource group, or null if the child view is not a timeline view.
Overrides
GetCellAtPosition(int, int)
Gets the cell element at the specified grid position within the timeline resource-grouped layout, handling coordinate lookups across resource rows.
Declaration
public override SchedulerCellElement GetCellAtPosition(int row, int column)
Parameters
row
The row index in the timeline layout grid.
column
The column index in the timeline layout grid.
Returns
The SchedulerCellElement at the specified position, or null if no cell exists at that position.
Overrides
GetCellCoordinates(SchedulerCellElement)
Gets the table layout coordinates for the specified cell element within the timeline resource-grouped layout structure.
Declaration
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
Parameters
cell
The SchedulerCellElement to get coordinates for.
Returns
A TableLayoutPanelCellPosition representing the cell's position in the timeline layout grid.
Overrides
InitializeViewSpecificChildren()
Initializes the view-specific child elements including corner cells and the vertical scrollbar for resource navigation in the timeline layout.
Declaration
protected override void InitializeViewSpecificChildren()
Overrides
MeasureOverride(SizeF)
Measures the desired size of this element and its children, calculating the space required for the timeline resource-grouped layout including headers and scrollbars.
OnViewPropertyChanged(object, PropertyChangedEventArgs)
Handles view property changes, responding to specific property modifications like ShowVerticalScrollBar to update the timeline display accordingly.
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
The source of the event.
e
The PropertyChangedEventArgs instance containing the event data.
Overrides
RefreshResourceViews()
Refreshes the resource view elements, configuring the vertical scrollbar properties and visibility based on resource count and view settings.
Declaration
protected override void RefreshResourceViews()
Overrides
Scroll(bool)
Scrolls the timeline view vertically through the resource rows, moving up or down based on the specified direction.
Declaration
public override void Scroll(bool up)
Parameters
up
True to scroll up through resource rows, false to scroll down.
Overrides
SynchronizeChildView(SchedulerTimelineViewElement, string)
Synchronizes a child timeline view element with changes from the parent view, updating properties and configurations based on the specified property name.
Declaration
protected override void SynchronizeChildView(SchedulerTimelineViewElement element, string propertyName)
Parameters
element
The SchedulerTimelineViewElement to synchronize.
propertyName
The name of the property that changed in the parent view.
Overrides