New to Telerik UI for WPFStart a free 30-day trial

Provides the properties and methods allowing transactional edit operations.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Type Parameters:

T

The type of the edited objects.

Syntax:

C#
public interface IObjectEditor<T>

Derived Classes: RadScheduleViewRadScheduleViewScheduleViewBaseScheduleViewBase

Properties

The currently edited object.

C#
T EditedItem { get; }

Methods

Begins a edit operation.

C#
bool BeginEdit(T item)
Parameters:itemT

The object to edit.

Returns:

bool

True when the operation succeeded, otherwise false.

Cancels the current edit operation.

C#
bool Cancel()
Returns:

bool

True when the operation succeeded, otherwise false.

Commits the current edit operation.

C#
bool Commit()
Returns:

bool

True when the operation succeeded, otherwise false.

Gets the item to edit.

C#
IOccurrence GetItemToEdit(T item)
Parameters:itemTReturns:

IOccurrence

Removes the specified object.

C#
bool Remove(T item)
Parameters:itemT

The object to remove.

Returns:

bool

True when the operation succeeded, otherwise false.