Represents a base type for views that are grouped by resource and consist of a set of child SchedulerViewElement views.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Type Parameters:
T
The type of the child view elements.
Syntax:
public abstract class SchedulerViewGroupedByResourceElement<T> : SchedulerViewGroupedByResourceElementBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider where T : SchedulerViewElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerViewElementSchedulerViewGroupedByResourceElementBaseSchedulerViewGroupedByResourceElement<T>...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a grouped view whose resource-specific child elements have type T.
public SchedulerViewGroupedByResourceElement(RadScheduler scheduler, SchedulerView view)
The Scheduler that owns the grouped view.
viewSchedulerViewThe view whose resources are displayed in groups.
Properties
Gets the first child view's appointment margin, or Empty when no child view exists; setting the value applies it to every child view.
public override Padding AppointmentMargin { get; set; }
Overrides:
Methods
Called when a new child view is initialized so the overriding members can set the appropriate settings to the newly created child view.
protected virtual void ApplyChildViewVisualSettings(T childView)
The child view.
Creates a child SchedulerView for the specified resource index.
protected abstract SchedulerView CreateChildView(int resourceIndex)
The resource index.
Returns:The newly created child SchedulerView.
Creates a child view element instance.
protected abstract T CreateChildViewElement(int resourcesIndex, int childIndex, SchedulerView childView)
The index of the resource that corresponds to this view.
childIndexintThe index of the child view in the current view.
childViewSchedulerViewThe child SchedulerView.
Returns:T
The newly created child view element.
Creates a temporary appointment in the child view assigned to resourceId, falling back to the base implementation when no child matches.
public override IEvent CreateTemporaryAppointment(string name, DateTime startDate, DateTime endDate, bool allDay, EventId resourceId)
The appointment subject.
startDateDateTimeThe appointment start time.
endDateDateTimeThe appointment end time.
allDaybooltrue to create an all-day appointment.
resourceIdEventIdThe resource identifier used to select a child view.
Returns:The temporary appointment created by the matching child or base view.
Overrides:
Gets a new list containing the cell containers from every child view.
public override List<SchedulerCellContainer> GetCellContainers()
List<SchedulerCellContainer>
The combined cell containers for the grouped view.
Overrides:
Gets a list of the child view elements that this view contains.
public IList<T> GetChildViewElements()
IList<T>
The list.
Gets a list of the view separators that are displayed between the child view elements.
public IList<LightVisualElement> GetViewSeparators()
IList<LightVisualElement>
The list.
Updates each child view's appointment collection after the Scheduler appointment collection changes.
protected override void OnSchedulerAppointmentsChanged(object sender, NotifyCollectionChangedEventArgs e)
The appointment collection that changed.
eNotifyCollectionChangedEventArgsThe collection-change details.
Overrides:
Propagates view-property changes to each child view after the grouped-view base handling completes.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
The view that raised the property-change notification.
ePropertyChangedEventArgsThe changed view property.
Overrides:
Disposes existing child views and separators, then recreates them for the current resource window.
protected override void RefreshResourceViews()
Overrides:
Called when the parrent view has changed and the child views need to update according to that change.
protected abstract void SynchronizeChildView(T element, string propertyName)
The child view element to synchronize.
propertyNamestringThe name of the property which caused the synchronization.
Reassigns each child view to its resource in the current window, then refreshes its appointments, cells, and appointment elements.
protected override void UpdateChildResourceIndices()
Overrides: