ClassSchedulerViewGroupedByResourceElement<T>
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
SchedulerViewGroupedByResourceElement(RadScheduler, SchedulerView)
Declaration
public SchedulerViewGroupedByResourceElement(RadScheduler scheduler, SchedulerView view)
Parameters
scheduler
view
Properties
AppointmentMargin
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.
Declaration
public override Padding AppointmentMargin { get; set; }
Property Value
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
childView
T
The child view.
CreateChildView(int)
Creates a child SchedulerView for the specified resource index.
Declaration
protected abstract SchedulerView CreateChildView(int resourceIndex)
Parameters
resourceIndex
The resource index.
Returns
The newly created child SchedulerView.
CreateChildViewElement(int, int, SchedulerView)
Creates a child view element instance.
Declaration
protected abstract T CreateChildViewElement(int resourcesIndex, int childIndex, SchedulerView childView)
Parameters
resourcesIndex
The index of the resource that corresponds to this view.
childIndex
The index of the child view in the current view.
childView
The child SchedulerView.
Returns
T
The newly created child view element.
CreateTemporaryAppointment(string, DateTime, DateTime, bool, EventId)
Creates a temporary appointment with the specified parameters and adds it to the current view. This method is used for creating appointments inline.
Declaration
public override IEvent CreateTemporaryAppointment(string name, DateTime startDate, DateTime endDate, bool allDay, EventId resourceId)
Parameters
name
The subject of the temporary appointment.
startDate
The start date of the temporary appointment.
endDate
The end date of the temporary appointment.
allDay
Indicates if the temporary appointment should be an AllDay one.
resourceId
The resource id to associate with the new appointment.
Returns
Overrides
GetCellContainers()
Gets all child elements that can contain cells or appointments (all child elements of type SchedulerCellContainer).
Declaration
public override List<SchedulerCellContainer> GetCellContainers()
Returns
List<SchedulerCellContainer>
A list containing the elements
Overrides
GetChildViewElements()
Gets a list of the child view elements that this view contains.
Declaration
public IList<T> GetChildViewElements()
Returns
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
IList<LightVisualElement>
The list.
OnSchedulerAppointmentsChanged(object, NotifyCollectionChangedEventArgs)
Called when the Appointments collection of RadScheduler has changed. Override to implement any custom updates to the element.
Declaration
protected override void OnSchedulerAppointmentsChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
The SchedulerAppointmentCollection that sends the event.
e
NotifyCollectionChangedEventArgs
The event arguments.
Overrides
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
RefreshResourceViews()
Refreshes the child SchedulerViewElement views.
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
element
T
The child view element to synchronize.
propertyName
The name of the property which caused the synchronization.
UpdateChildResourceIndices()
Called when the ResourceStartIndex has changed in order to update the associated resources of the child views.
Declaration
protected override void UpdateChildResourceIndices()
Overrides