Hosts the resource-name cells and separators above or beside views grouped by resource.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerResourcesHeaderElement : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerResourcesHeaderElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerResourcesHeaderElement class.
public SchedulerResourcesHeaderElement(RadScheduler scheduler, SchedulerView view)
The scheduler.
viewSchedulerViewThe view.
Properties
Gets or sets the start resource render index.
public int StartIndex { get; set; }
Methods
Arranges resource cells and separators horizontally for day and month views and vertically for timeline views.
Gets the resource associated with a visible header-cell index, or null when that index is outside the resource collection.
public Resource GetResource(int cellIndex)
The zero-based index of the resource cell within the header.
Returns:The resource at StartIndex plus cellIndex, or null when no resource exists there.
Gets the color for the resource at the visible header-cell index.
For a trailing cell beyond the collection, the method tries Scheduler.Resources.Count - (StartIndex + cellIndex) as a fallback index.
When no resource resolves, including when the collection is empty, it returns white.
Gets the image for the resource at the visible header-cell index.
For a trailing cell beyond the collection, the method tries Scheduler.Resources.Count - (StartIndex + cellIndex) as a fallback index.
Gets the name for the resource at the visible header-cell index.
For a trailing cell beyond the collection, the method tries Scheduler.Resources.Count - (StartIndex + cellIndex) as a fallback index.
Applies the scheduler header-cell style and border, and stretches the header across its view.
protected override void InitializeFields()
Overrides:
Recreates the visible resource cells and separators for the current view, then updates their displayed values. Month views also include the corner cell used beside the week-number header.
public void RefreshElements()
Updates each visible resource cell with its resource identifier, name, image, and color, then raises Scheduler cell-formatting events.
public void RenderElements()
Stores the resource-cell and separator bounds calculated by the grouped view for the next arrange pass.
public void SetResourcesLayoutInfo(List<RectangleF> resourcesBounds, List<RectangleF> separatorsBounds)
Ordered layout rectangles for visible resource cells.
separatorsBoundsList<RectangleF>Ordered layout rectangles for separators between visible resource cells.