ClassAppointmentSelectionBehavior
Represents a behavior of the appointment selection in the RadScheduleView control.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class AppointmentSelectionBehavior : Freezable
Inheritance: objectAppointmentSelectionBehavior
Constructors
AppointmentSelectionBehavior()
Declaration
public AppointmentSelectionBehavior()
Properties
IsSynchronizedWithCurrentItem
Gets or sets a value that indicates whether a RadScheduleView should keep the SelectedAppointment synchronized with the CurrentAppointment of the control's property.
Declaration
public bool IsSynchronizedWithCurrentItem { get; set; }
Property Value
Methods
CreateInstanceCore()
Declaration
protected override Freezable CreateInstanceCore()
Returns
Freezable
GetItemToSelect(AppointmentSelectionState, IOccurrence)
Declaration
protected virtual IOccurrence GetItemToSelect(AppointmentSelectionState state, IOccurrence occurrence)
Parameters
state
occurrence
Returns
GetNewAppointmentSelection(AppointmentSelectionState, IOccurrence, IDateSpan)
Gets the appointments in current range.
Declaration
public IEnumerable<IOccurrence> GetNewAppointmentSelection(AppointmentSelectionState state, IOccurrence target, IDateSpan clickedRange)
Parameters
state
The selection state.
target
The targeted appointment.
clickedRange
The time range in which the selection occurs.
Returns
List of selected occurrences.
GetOccurrenceIterationProvider(AppointmentSelectionState)
Declaration
protected IOccurrenceIterationProvider GetOccurrenceIterationProvider(AppointmentSelectionState state)
Parameters
state
Returns
GetSelectedAppointments(AppointmentSelectionState, IOccurrence)
Declaration
protected virtual IEnumerable<IOccurrence> GetSelectedAppointments(AppointmentSelectionState state, IOccurrence target)
Parameters
state
target
Returns
UpdateCurrencyAndSelection(AppointmentSelectionState, IEnumerable<IOccurrence>)
Declaration
protected virtual void UpdateCurrencyAndSelection(AppointmentSelectionState state, IEnumerable<IOccurrence> newSelection)
Parameters
state
newSelection