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
public SchedulerViewGroupedByResourceElement(RadScheduler scheduler, SchedulerView view)
Properties
Gets or sets the margin of the appointment elements. This property can be used to set the spacing between appointment elements in the different views.
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 with the specified parameters and adds it to the current view. This method is used for creating appointments inline.
public override IEvent CreateTemporaryAppointment(string name, DateTime startDate, DateTime endDate, bool allDay, EventId resourceId)
The subject of the temporary appointment.
startDateDateTimeThe start date of the temporary appointment.
endDateDateTimeThe end date of the temporary appointment.
allDayboolIndicates if the temporary appointment should be an AllDay one.
resourceIdEventIdThe resource id to associate with the new appointment.
Returns:Overrides:
Gets all child elements that can contain cells or appointments (all child elements of type SchedulerCellContainer).
public override List<SchedulerCellContainer> GetCellContainers()
List<SchedulerCellContainer>
A list containing the elements
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.
Called when the Appointments collection of RadScheduler has changed. Override to implement any custom updates to the element.
protected override void OnSchedulerAppointmentsChanged(object sender, NotifyCollectionChangedEventArgs e)
The SchedulerAppointmentCollection that sends the event.
eNotifyCollectionChangedEventArgsThe event arguments.
Overrides:
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:
Refreshes the child SchedulerViewElement views.
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.
Called when the ResourceStartIndex has changed in order to update the associated resources of the child views.
protected override void UpdateChildResourceIndices()
Overrides: