ClassSchedulerViewGroupedByResourceElementBase
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
SchedulerViewGroupedByResourceElementBase(RadScheduler, SchedulerView)
Declaration
public SchedulerViewGroupedByResourceElementBase(RadScheduler scheduler, SchedulerView view)
Parameters
scheduler
view
Fields
ResourceScrollBarThicknessProperty
Declaration
public static readonly RadProperty ResourceScrollBarThicknessProperty
Field Value
Properties
BackwardNavigator
Gets the navigator elements that navigates to the previous existing appointment.
Declaration
public override ViewNavigationElement BackwardNavigator { get; protected set; }
Property Value
Overrides
ForwardNavigator
Gets the navigator element that navigates to the next existing appointment.
Declaration
public override ViewNavigationElement ForwardNavigator { get; protected set; }
Property Value
Overrides
ResourceScrollBar
Gets the scrollbar that stands for navigating between resources.
Declaration
public abstract RadScrollBarElement ResourceScrollBar { get; }
Property Value
ResourceScrollBarThickness
Gets or sets the thickness of the ResourceScrollBar.
Declaration
public int ResourceScrollBarThickness { get; set; }
Property Value
ResourceStartIndex
Gets or sets the current resource index.
ResourcesHeader
Gets the SchedulerResourcesHeaderElement which contains the resource header cells.
Declaration
public SchedulerResourcesHeaderElement ResourcesHeader { get; }
Property Value
Methods
GetResourceOffset(int, float)
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.
GetResourceSize(int)
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.
GetResourceSize(int, float)
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.
GetResourcesSize(int, int, float)
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.
Declaration
public float GetResourcesSize(int startIndex, int endIndex, float availableSpace)
Parameters
startIndex
The index of the first child view in the range.
endIndex
The index of the last child view in the range.
availableSpace
The total space available for resource views.
Returns
The size of the specified child view range.
InitializeViewSpecificChildren()
Initializes the child elements which are specific to the current view type.
Declaration
protected virtual void InitializeViewSpecificChildren()
NavigateBackward()
Navigates to the previous view.
Declaration
public override void NavigateBackward()
Overrides
NavigateForward()
Navigates to the next view.
Declaration
public override void NavigateForward()
Overrides
NavigateToNextResource()
Navigates the grouped view to the next resource.
Declaration
public void NavigateToNextResource()
NavigateToPreviousResource()
Navigates the grouped view to the previous resource.
Declaration
public void NavigateToPreviousResource()
NavigateToResource(int)
Navigates the grouped view to a resource with a specified index.
Declaration
public virtual void NavigateToResource(int index)
Parameters
index
The specified index.
OnResourceStartIndexChanged()
Fires the ResourceStartIndexChanged event.
Declaration
protected virtual void OnResourceStartIndexChanged()
OnResourceStartIndexChanging(ref int)
Fires the ResourceStartIndexChanged event.
OnViewPropertyChanged(object, PropertyChangedEventArgs)
Called when a property of the view has changed Override to implement any custom updates to the element.
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
e
Overrides
RefreshAppointments()
Recycles the existing appointment elements in all child appointment containers and replaces them with new ones.
Declaration
public void RefreshAppointments()
RefreshResourceViews()
Refreshes the child SchedulerViewElement views.
Declaration
protected abstract void RefreshResourceViews()
RefreshViews()
Removes all child view elements and creates new ones according to the current resource settings.
Declaration
public void RefreshViews()
SetResourceSize(int, float)
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.
UpdateChildResourceIndices()
Called when the ResourceStartIndex has changed in order to update the associated resources of the child views.
Declaration
protected abstract void UpdateChildResourceIndices()
UpdateResourcesScrollbar()
Called to update the properties of the resources scrollbar.
Declaration
public virtual void UpdateResourcesScrollbar()