Class
ReadOnlyBehavior

Represents basic implementation of IReadOnlyBehavior.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class ReadOnlyBehavior : IReadOnlyBehavior

Inheritance: objectReadOnlyBehavior

Implements: IReadOnlyBehavior

Constructors

ReadOnlyBehavior()

Initializes a new instance of the ReadOnlyBehavior class.

Declaration

cs-api-definition
public ReadOnlyBehavior()

Methods

CanDeleteAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be deleted when it resides in read-only range.

Declaration

cs-api-definition
public virtual bool CanDeleteAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

occurrence

IOccurrence

The occurrence or appointment object.

Returns

bool

true if this occurrence can be deleted otherwise, false.

Implements IReadOnlyBehavior.CanDeleteAppointment(IReadOnlySettings, IOccurrence)

CanDragAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be dragged when it resides in read-only range.

Declaration

cs-api-definition
public virtual bool CanDragAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

occurrence

IOccurrence

The occurrence or appointment object.

Returns

bool

true if this occurrence can be dragged otherwise, false.

Implements IReadOnlyBehavior.CanDragAppointment(IReadOnlySettings, IOccurrence)

CanEditAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be edit via edit dialog.

Declaration

cs-api-definition
public virtual bool CanEditAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

occurrence

IOccurrence

The occurrence or appointment object.

Returns

bool

true if this occurrence can be edit; otherwise, false.

Implements IReadOnlyBehavior.CanEditAppointment(IReadOnlySettings, IOccurrence)

CanEditSlot(IReadOnlySettings, Slot)

Determines whether this the specified slot allows appointments to be added.

Declaration

cs-api-definition
public virtual bool CanEditSlot(IReadOnlySettings readOnlySettings, Slot slot)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

slot

Slot

The slot.

Returns

bool

true if the specified slot allows appointments to be added; otherwise, false.

Implements IReadOnlyBehavior.CanEditSlot(IReadOnlySettings, Slot)

CanResizeAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be resized when it resides in read-only range.

Declaration

cs-api-definition
public virtual bool CanResizeAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

occurrence

IOccurrence

The occurrence or appointment object.

Returns

bool

true if this occurrence can be resized otherwise, false.

Implements IReadOnlyBehavior.CanResizeAppointment(IReadOnlySettings, IOccurrence)

CanSaveAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be saved via edit dialog.

Declaration

cs-api-definition
public virtual bool CanSaveAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)

Parameters

readOnlySettings

IReadOnlySettings

The settings for the behavior.

occurrence

IOccurrence

The occurrence or appointment object.

Returns

bool

true if this occurrence can be saved; otherwise, false.

Implements IReadOnlyBehavior.CanSaveAppointment(IReadOnlySettings, IOccurrence)