SchedulerSelectionBehavior Class
Click or drag to resize
SchedulerSelectionBehavior Class
Performs selection operations and provides information about the current selection of cells and appointments in RadScheduler. The cell selection in RadScheduler represents a single date interval - it has SelectionStartDate and SelectionEndDate. A few other parameters help to fully identify the current selection - IsAllDayAreaSelection, SelectedResourceId, CurrentCell. There are two modes for appointment selection - single selection and multi selection. Use the AllowAppointmentsMultiSelect property of RadScheduler to switch between them.
Inheritance Hierarchy
SystemObject
  Telerik.WinControls.UISchedulerSelectionBehavior

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler (in Telerik.WinControls.Scheduler.dll) Version: 2018.2.619.40 (2018.2.619.40)
Syntax
public class SchedulerSelectionBehavior

The SchedulerSelectionBehavior type exposes the following members.

Constructors
  NameDescription
Public methodSchedulerSelectionBehavior
Creates a the selection behavior for the specified RadScheduler.
Top
Properties
  NameDescription
Public propertyCurrentCell
Gets or sets the coordinates of the current cell. The current cell is the start cell that will be used when performing navigation with the arrow keys.
Public propertyCurrentCellElement
Gets the SchedulerCellElement which stands on the coordinates provided by the CurrentCell property.
Public propertyHasAppointmentsSelected
Gets a value indicating whether there is any appointment selected.
Public propertyHasCellsSelected
Gets a value indicating whether there is any cell selected.
Public propertyIsAllDayAreaSelection
Gets a value indicating whether the current selection is within the AllDay area of the SchedulerDayViewElement.
Public propertyScheduler
The RadScheduler this behavior belongs to.
Public propertySelectedAppointment
Gets the last selected appointment.
Public propertySelectedAppointmentElement
Gets the AppointmentElement which represents the selected appointment.
Public propertySelectedAppointments
Gets a read-only list which contains the currently selected appointments.
Public propertySelectedResourceId
Gets the id of the resource which contains the current selection.
Public propertySelectionEndDate
Gets the end date of the current selection range. The value of the property can be less that the value of SelectionStartRange. Derived classes can set a value.
Public propertySelectionStartDate
Gets the start date of the current selection range. The value of the property can be greater that the value of SelectionEndRange. Derived classes can set a value.
Top
Methods
  NameDescription
Public methodGetCellDuration
Gets the logical duration of a cell in the current view. For example: the duration of an AllDay cell will be 1 day and the duration of a cell in day view with the default ScaleFactor will be 60 minutes.
Public methodGetSelectedInterval
Gets the date-time interval that is currently selected. If SelectionStartDate is greater than SelectionEndDate, the method will swap the values and will always return an interval in which the Start is less than or equal to the End.
Public methodIsAppointmentSelected
Returns a value indicating whether an appointment is in the current selection.
Public methodIsCellSelected
Returns a value indicating whether a cell element is selected.
Public methodIsDateSelected
Returns a value indicating whether a cell with specified parameters is currently selected.
Public methodResetAppointmentSelection
Clears the current appointment selection.
Public methodResetCellSelection
Clears the current cell selection.
Public methodResetSelection
Clears both appointment selection and cell selection.
Public methodSelectAppointment
Selects a given appointment.
Public methodSelectCell(SchedulerCellElement)
Selects a given cell element. Selecting a cell will reset the appointment selection.
Public methodSelectCell(SchedulerCellElement, Boolean)
Selects a given cell element. Selecting a cell will reset the appointment selection.
Public methodSelectDateRange(DateTime, DateTime)
Selects all cells in a specified range.
Public methodSelectDateRange(DateTime, DateTime, EventId)
Selects all cells in a specified range.
Public methodUnselectAppointment
Removes an appointment from the current selection.
Top
Fields
  NameDescription
Protected fieldselectedAppointmentsList
Top
See Also