Class SchedulerViewGroupedByResourceElementBase
Represents a base type for all views that are grouped by resource.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class SchedulerViewGroupedByResourceElementBase : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
SchedulerViewGroupedByResourceElementBase(RadScheduler, SchedulerView)
Declaration
public SchedulerViewGroupedByResourceElementBase(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
|
SchedulerView
view
|
Fields
ResourceScrollBarThicknessProperty
Declaration
public static readonly RadProperty ResourceScrollBarThicknessProperty
Field Value
RadProperty
|
Properties
BackwardNavigator
ForwardNavigator
ResourceScrollBar
Gets the scrollbar that stands for navigating between resources.
Declaration
public abstract RadScrollBarElement ResourceScrollBar { get; }
Property Value
RadScrollBarElement
|
ResourceScrollBarThickness
Gets or sets the thickness of the ResourceScrollBar.
Declaration
public int ResourceScrollBarThickness { get; set; }
Property Value
System.Int32
|
ResourcesHeader
Gets the SchedulerResourcesHeaderElement which contains the resource header cells.
Declaration
public SchedulerResourcesHeaderElement ResourcesHeader { get; }
Property Value
SchedulerResourcesHeaderElement
|
ResourceStartIndex
Gets or sets the current resource index.
Declaration
public int ResourceStartIndex { get; set; }
Property Value
System.Int32
|
Methods
GetResourceOffset(Int32, Single)
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.
Declaration
public float GetResourceOffset(int childViewIndex, float availableSpace)
Parameters
System.Int32
childViewIndex
The zero-based child view index. |
System.Single
availableSpace
The total space available for resource views. |
Returns
System.Single
The offset of the specified child view. |
GetResourceSize(Int32)
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.
Declaration
public float GetResourceSize(int childViewIndex)
Parameters
System.Int32
childViewIndex
The zero-based child view index. |
Returns
System.Single
The size of the specified resource. |
GetResourceSize(Int32, Single)
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.
Declaration
public float GetResourceSize(int childViewIndex, float availableSpace)
Parameters
System.Int32
childViewIndex
The zero-based child view index. |
System.Single
availableSpace
The total space available for resource views. |
Returns
System.Single
The size of the specified child view. |
GetResourcesSize(Int32, Int32, Single)
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
System.Int32
startIndex
The index of the first child view in the range. |
System.Int32
endIndex
The index of the last child view in the range. |
System.Single
availableSpace
The total space available for resource views. |
Returns
System.Single
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()
NavigateForward()
NavigateToNextResource()
NavigateToPreviousResource()
NavigateToResource(Int32)
OnResourceStartIndexChanged()
Fires the ResourceStartIndexChanged event.
Declaration
protected virtual void OnResourceStartIndexChanged()
OnResourceStartIndexChanging(ref Int32)
Fires the ResourceStartIndexChanged event.
Declaration
protected virtual bool OnResourceStartIndexChanging(ref int index)
Parameters
System.Int32
index
The resource index that is going to be selected. |
Returns
System.Boolean
[true] if the change should be canceled, [false] otherwise. |
OnViewPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
|
System.ComponentModel.PropertyChangedEventArgs
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(Int32, Single)
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.
Declaration
public void SetResourceSize(int childViewIndex, float value)
Parameters
System.Int32
childViewIndex
The index of the child view to resize. |
System.Single
value
The value according to which the actual size will be calculated. |
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()