Represents a base type for all views that are grouped by resource.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class SchedulerViewGroupedByResourceElementBase : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerViewElementSchedulerViewGroupedByResourceElementBase...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the shared resource header and the child elements for the active grouped view.
public SchedulerViewGroupedByResourceElementBase(RadScheduler scheduler, SchedulerView view)
The Scheduler that owns the grouped view.
viewSchedulerViewThe view whose resources are displayed in groups.
Fields
Identifies the resource scrollbar thickness setting. Its default matches the horizontal scrollbar height and changes invalidate parent layout.
public static readonly RadProperty ResourceScrollBarThicknessProperty
Properties
Gets null; assignments are ignored because grouped views navigate through resources or their date range instead of a standard backward navigator.
public override ViewNavigationElement BackwardNavigator { get; protected set; }
Overrides:
Gets null; assignments are ignored because grouped views navigate through resources or their date range instead of a standard forward navigator.
public override ViewNavigationElement ForwardNavigator { get; protected set; }
Overrides:
Gets the scrollbar that stands for navigating between resources.
public abstract RadScrollBarElement ResourceScrollBar { get; }
Gets or sets the thickness of the ResourceScrollBar.
public int ResourceScrollBarThickness { get; set; }
Gets the SchedulerResourcesHeaderElement which contains the resource header cells.
public SchedulerResourcesHeaderElement ResourcesHeader { get; }
Gets or sets the current resource index.
public int ResourceStartIndex { get; set; }
Methods
Gets the offset of the child view with a specified index compared to the start edge of the first child view. The offset is either horizontal or vertical depending on the type of the active view.
Gets the size of the child view with a specified index. The returned value means either width or height depending on the type of the active view.
Returns the resource size as set by the SetResourceSize method. The actual size of a resource will be calculated proportionally according to the values other resources have. The default value for each resource is one. This means that setting a value of 2 for a given resource will make it twice as large compared to other resources. To get the size of a resource in pixels use one of the other overloads of this method.
Gets the total size of a range of child views given their indices. The returned value means either width or height depending on the type of the active view.
public float GetResourcesSize(int startIndex, int endIndex, float availableSpace)
The index of the first child view in the range.
endIndexintThe index of the last child view in the range.
availableSpacefloatThe total space available for resource views.
Returns:The size of the specified child view range.
Initializes the child elements which are specific to the current view type.
protected virtual void InitializeViewSpecificChildren()
Moves to the previous resource group, or to the previous date range when the visible group is at the beginning. Timeline views delegate backward navigation to the base view element.
public override void NavigateBackward()
Overrides:
Advances to the next resource group, or to the next date range when the visible group is already at the end. Timeline views delegate forward navigation to the base view element.
public override void NavigateForward()
Overrides:
Navigates the grouped view to the next resource.
public void NavigateToNextResource()
Navigates the grouped view to the previous resource.
public void NavigateToPreviousResource()
Navigates the grouped view to a resource with a specified index.
Fires the ResourceStartIndexChanged event.
protected virtual void OnResourceStartIndexChanged()
Fires the ResourceStartIndexChanged event.
Updates resource-group layout when the separator width, scrolling setting, or resources-per-view count changes.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
The view that raised the property-change notification.
ePropertyChangedEventArgsThe changed view property.
Overrides:
Recycles the existing appointment elements in all child appointment containers and replaces them with new ones.
public void RefreshAppointments()
Refreshes the child SchedulerViewElement views.
protected abstract void RefreshResourceViews()
Removes all child view elements and creates new ones according to the current resource settings.
public void RefreshViews()
Sets the size of a child view. The actual size of a child view will be calculated proportionally according to the values other child views have. The default value of each child view is one. This means that setting a value of 2 for a given child view will make it twice as large compared to other child views.
Called when the ResourceStartIndex has changed in order to update the associated resources of the child views.
protected abstract void UpdateChildResourceIndices()
Called to update the properties of the resources scrollbar.
public virtual void UpdateResourcesScrollbar()