Class SchedulerViewGroupedByResourceElement<T>
Represents a base type for views that are grouped by resource and consist of a set of child SchedulerViewElement views.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class SchedulerViewGroupedByResourceElement<T> : SchedulerViewGroupedByResourceElementBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider where T : SchedulerViewElement
Type Parameters
|
T
The type of the child view elements. |
Constructors
SchedulerViewGroupedByResourceElement(RadScheduler, SchedulerView)
Declaration
public SchedulerViewGroupedByResourceElement(RadScheduler scheduler, SchedulerView view)
Parameters
|
RadScheduler
scheduler
|
|
SchedulerView
view
|
Properties
AppointmentMargin
Declaration
public override Padding AppointmentMargin { get; set; }
Property Value
|
System.Windows.Forms.Padding
|
Overrides
Methods
ApplyChildViewVisualSettings(T)
Called when a new child view is initialized so the overriding members can set the appropriate settings to the newly created child view.
Declaration
protected virtual void ApplyChildViewVisualSettings(T childView)
Parameters
|
T
childView
The child view. |
CreateChildView(Int32)
Creates a child SchedulerView for the specified resource index.
Declaration
protected abstract SchedulerView CreateChildView(int resourceIndex)
Parameters
|
System.Int32
resourceIndex
The resource index. |
Returns
|
SchedulerView
The newly created child SchedulerView. |
CreateChildViewElement(Int32, Int32, SchedulerView)
Creates a child view element instance.
Declaration
protected abstract T CreateChildViewElement(int resourcesIndex, int childIndex, SchedulerView childView)
Parameters
|
System.Int32
resourcesIndex
The index of the resource that corresponds to this view. |
|
System.Int32
childIndex
The index of the child view in the current view. |
|
SchedulerView
childView
The child SchedulerView. |
Returns
|
T
The newly created child view element. |
CreateTemporaryAppointment(String, DateTime, DateTime, Boolean, EventId)
Declaration
public override IEvent CreateTemporaryAppointment(string name, DateTime startDate, DateTime endDate, bool allDay, EventId resourceId)
Parameters
|
System.String
name
|
|
System.DateTime
startDate
|
|
System.DateTime
endDate
|
|
System.Boolean
allDay
|
|
EventId
resourceId
|
Returns
|
IEvent
|
Overrides
GetCellContainers()
Declaration
public override List<SchedulerCellContainer> GetCellContainers()
Returns
|
System.Collections.Generic.List<SchedulerCellContainer>
|
Overrides
GetChildViewElements()
Gets a list of the child view elements that this view contains.
Declaration
public IList<T> GetChildViewElements()
Returns
|
System.Collections.Generic.IList<T>
The list. |
GetViewSeparators()
Gets a list of the view separators that are displayed between the child view elements.
Declaration
public IList<LightVisualElement> GetViewSeparators()
Returns
|
System.Collections.Generic.IList<LightVisualElement>
The list. |
OnSchedulerAppointmentsChanged(Object, NotifyCollectionChangedEventArgs)
Declaration
protected override void OnSchedulerAppointmentsChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
|
System.Object
sender
|
|
NotifyCollectionChangedEventArgs
e
|
Overrides
OnViewPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
|
System.Object
sender
|
|
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
RefreshResourceViews()
Declaration
protected override void RefreshResourceViews()
Overrides
SynchronizeChildView(T, String)
Called when the parrent view has changed and the child views need to update according to that change.
Declaration
protected abstract void SynchronizeChildView(T element, string propertyName)
Parameters
|
T
element
The child view element to synchronize. |
|
System.String
propertyName
The name of the property which caused the synchronization. |
UpdateChildResourceIndices()
Declaration
protected override void UpdateChildResourceIndices()