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
public SchedulerViewGroupedByResourceElementBase(RadScheduler scheduler, SchedulerView view)
Fields
public static readonly RadProperty ResourceScrollBarThicknessProperty
Properties
Gets the navigator elements that navigates to the previous existing appointment.
public override ViewNavigationElement BackwardNavigator { get; protected set; }
Overrides:
Gets the navigator element that navigates to the next existing appointment.
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()
Navigates to the previous view.
public override void NavigateBackward()
Overrides:
Navigates to the next view.
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.
Called when a property of the view has changed Override to implement any custom updates to the element.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
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()