ClassReadOnlyBehavior
Represents basic implementation of IReadOnlyBehavior.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class ReadOnlyBehavior : IReadOnlyBehavior
Inheritance: objectReadOnlyBehavior
Implements:
Constructors
ReadOnlyBehavior()
Initializes a new instance of the ReadOnlyBehavior class.
Declaration
public ReadOnlyBehavior()
Methods
CanDeleteAppointment(IReadOnlySettings, IOccurrence)
Determines whether this occurrence or appointment can be deleted when it resides in read-only range.
Declaration
public virtual bool CanDeleteAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters
readOnlySettings
The settings for the behavior.
occurrence
The occurrence or appointment object.
Returns
true if this occurrence can be deleted otherwise, false.
Implements
CanDragAppointment(IReadOnlySettings, IOccurrence)
Determines whether this occurrence or appointment can be dragged when it resides in read-only range.
Declaration
public virtual bool CanDragAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters
readOnlySettings
The settings for the behavior.
occurrence
The occurrence or appointment object.
Returns
true if this occurrence can be dragged otherwise, false.
Implements
CanEditAppointment(IReadOnlySettings, IOccurrence)
Determines whether this occurrence or appointment can be edit via edit dialog.
Declaration
public virtual bool CanEditAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters
readOnlySettings
The settings for the behavior.
occurrence
The occurrence or appointment object.
Returns
true if this occurrence can be edit; otherwise, false.
Implements
CanEditSlot(IReadOnlySettings, Slot)
Determines whether this the specified slot allows appointments to be added.
Declaration
public virtual bool CanEditSlot(IReadOnlySettings readOnlySettings, Slot slot)
Parameters
readOnlySettings
The settings for the behavior.
slot
The slot.
Returns
true if the specified slot allows appointments to be added; otherwise, false.
Implements
CanResizeAppointment(IReadOnlySettings, IOccurrence)
Determines whether this occurrence or appointment can be resized when it resides in read-only range.
Declaration
public virtual bool CanResizeAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters
readOnlySettings
The settings for the behavior.
occurrence
The occurrence or appointment object.
Returns
true if this occurrence can be resized otherwise, false.
Implements
CanSaveAppointment(IReadOnlySettings, IOccurrence)
Determines whether this occurrence or appointment can be saved via edit dialog.
Declaration
public virtual bool CanSaveAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters
readOnlySettings
The settings for the behavior.
occurrence
The occurrence or appointment object.
Returns
true if this occurrence can be saved; otherwise, false.
Implements