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
Initializes a new instance of the TimelineGroupingByResourcesElement class with the specified scheduler control and view configuration, setting up resource-based timeline grouping layout.
public TimelineGroupingByResourcesElement(RadScheduler scheduler, SchedulerView view)
The RadScheduler control that owns this view element.
viewSchedulerViewThe SchedulerView that this element represents.
Properties
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.
public int ResourceHeaderWidth { get; set; }
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.
public override RadScrollBarElement ResourceScrollBar { get; }
Overrides:
Methods
Applies visual settings to a child timeline view element, including background colors and gradient styles based on the associated resource.
protected override void ApplyChildViewVisualSettings(SchedulerTimelineViewElement childView)
The SchedulerTimelineViewElement to apply visual settings to.
Overrides:
Arranges all child elements within the available space, positioning resource rows, separators, headers, and scrollbars according to the timeline resource-grouped layout.
Creates the child elements and sets the CSS class specific to the timeline resource grouping element.
protected override void CreateChildElements()
Overrides:
Creates a child timeline view for the specified resource index, configuring it with the appropriate resource assignments and timeline-specific properties.
protected override SchedulerView CreateChildView(int 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:
Creates a child timeline view element for the specified resource, configuring it according to the parent timeline view settings and resource-specific properties.
protected override SchedulerTimelineViewElement CreateChildViewElement(int resourcesStartIndex, int childIndex, SchedulerView childView)
The starting index of resources for this child view.
childIndexintThe index of this child view among all child views.
childViewSchedulerViewThe 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:
Gets the cell element at the specified grid position within the timeline resource-grouped layout, handling coordinate lookups across resource rows.
public override SchedulerCellElement GetCellAtPosition(int row, int column)
The row index in the timeline layout grid.
columnintThe column index in the timeline layout grid.
Returns:The SchedulerCellElement at the specified position, or null if no cell exists at that position.
Overrides:
Gets the table layout coordinates for the specified cell element within the timeline resource-grouped layout structure.
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
The SchedulerCellElement to get coordinates for.
Returns:A TableLayoutPanelCellPosition representing the cell's position in the timeline layout grid.
Overrides:
Initializes the view-specific child elements including corner cells and the vertical scrollbar for resource navigation in the timeline layout.
protected override void InitializeViewSpecificChildren()
Overrides:
Measures the desired size of this element and its children, calculating the space required for the timeline resource-grouped layout including headers and scrollbars.
Handles view property changes, responding to specific property modifications like ShowVerticalScrollBar to update the timeline display accordingly.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
The source of the event.
ePropertyChangedEventArgsThe PropertyChangedEventArgs instance containing the event data.
Overrides:
Refreshes the resource view elements, configuring the vertical scrollbar properties and visibility based on resource count and view settings.
protected override void RefreshResourceViews()
Overrides:
Scrolls the timeline view vertically through the resource rows, moving up or down based on the specified direction.
public override void Scroll(bool up)
True to scroll up through resource rows, false to scroll down.
Overrides:
Synchronizes a child timeline view element with changes from the parent view, updating properties and configurations based on the specified property name.
protected override void SynchronizeChildView(SchedulerTimelineViewElement element, string propertyName)
The SchedulerTimelineViewElement to synchronize.
propertyNamestringThe name of the property that changed in the parent view.
Overrides: