Respresents the main visual element of RadScheduler when the active view is SchedulerMonthView and grouping by resource is enabled.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerMonthViewGroupedByResourceElement : SchedulerViewGroupedByResourceElement<SchedulerMonthViewElement>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerViewElementSchedulerViewGroupedByResourceElementBaseSchedulerViewGroupedByResourceElement<SchedulerMonthViewElement>SchedulerMonthViewGroupedByResourceElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerMonthViewGroupedByResourceElement class.
public SchedulerMonthViewGroupedByResourceElement(RadScheduler scheduler, SchedulerView view)
The scheduler.
viewSchedulerViewThe view.
Properties
Gets or sets resource header height
public int ResourceHeaderHeight { get; set; }
Gets the horizontal scrollbar used to navigate the visible resource-specific month views.
public override RadScrollBarElement ResourceScrollBar { get; }
Overrides:
Methods
Applies the resource-derived background color and reduced opacity used to distinguish each child month view.
protected override void ApplyChildViewVisualSettings(SchedulerMonthViewElement monthViewElement)
The child month-view element to style.
Overrides:
Arranges the resource-specific month views beneath the resource header and positions the resource header and scrollbar, accounting for shared headers, separators, and right-to-left layout.
Creates a month view for one resource, copying the parent view's calendar settings and assigning shared week-range and vertical-navigation headers only to the first and last configured resource slots, respectively.
Wraps a child SchedulerMonthView in its visual month-view element.
protected override SchedulerMonthViewElement CreateChildViewElement(int resourcesStartIndex, int childIndex, SchedulerView childView)
The resource index associated with the child view.
childIndexintThe position of the child among the visible resource views.
childViewSchedulerViewThe view to wrap.
Returns:A month-view element, or null if childView is not a SchedulerMonthView.
Overrides:
Finds the cell at a combined-grid position, mapping columns to resource views and wrapping rows that fall outside the visible week range into an adjacent resource view.
public override SchedulerCellElement GetCellAtPosition(int row, int column)
The row in the combined month grid.
columnintThe column in the combined month grid.
Returns:The matching cell, or null when no target child or cell exists. At least one child month view must be present for the lookup.
Overrides:
Converts a cell's child-local column into its column in the combined resource-grouped month grid.
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
The cell whose combined-grid coordinates are required.
Returns:The combined-grid column and the cell's existing row.
Overrides:
Sets the visual class and border and enables the grouped view to stretch in both dimensions.
protected override void InitializeFields()
Overrides:
Creates the horizontal scrollbar and connects it to resource navigation.
protected override void InitializeViewSpecificChildren()
Overrides:
Measures the resource-specific month views and their separators, accounting for the resource header, shared week-range header, and horizontal resource scrollbar.
Invalidates measurement when changing the week-range header or vertical navigator visibility can alter the layout.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
The view that raised the property-change notification.
ePropertyChangedEventArgsThe changed property information.
Overrides:
Rebuilds the resource child views and subscribes to their header-height changes so the headers remain aligned.
protected override void RefreshResourceViews()
Overrides:
Copies shared settings from the parent month view, then updates the week-range header on the first child and the vertical navigator on the last configured child slot when it is not also the first child.
protected override void SynchronizeChildView(SchedulerMonthViewElement element, string propertyName)
The child month-view element to synchronize.
propertyNamestringThe name of the parent-view property that changed.
Overrides: