Class
SchedulerEditManager

Used to manage editors in SchedulerVisualElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class SchedulerEditManager : IEditorManager, IDisposable

Inheritance: objectSchedulerEditManager

Implements: IDisposableIEditorManager

Constructors

SchedulerEditManager(RadSchedulerElement)

Initializes a new instance of the SchedulerEditManager class.

Declaration

cs-api-definition
public SchedulerEditManager(RadSchedulerElement schedulerElement)

Parameters

schedulerElement

RadSchedulerElement

The RadSchedulerElement, RadSchedulerElement associated with this class.

Properties

ActiveEditor

Gets the active editor

Declaration

cs-api-definition
public ISchedulerEditor ActiveEditor { get; }

Property Value

ISchedulerEditor

CloseEditorWhenValidationFails

Gets or sets a value indicating whether the active editor should be closed when validation process fails.

Declaration

cs-api-definition
public bool CloseEditorWhenValidationFails { get; set; }

Property Value

bool

EditorViewMode

Declaration

cs-api-definition
public virtual SchedulerEditorViewMode EditorViewMode { get; set; }

Property Value

SchedulerEditorViewMode

IsInEditMode

Gets a value indicating whether the cell is in edit mode.

Declaration

cs-api-definition
public bool IsInEditMode { get; }

Property Value

bool

SchedulerElement

The instance of RadGridViewElement associated with this class.

Declaration

cs-api-definition
public RadSchedulerElement SchedulerElement { get; }

Property Value

RadSchedulerElement

Methods

BeginEdit()

Puts the current cell in edit mode.

Declaration

cs-api-definition
public virtual bool BeginEdit()

Returns

bool

Returns true if the process is successful.

BeginInlineEdit()

Invokes default inline editor.

Declaration

cs-api-definition
public virtual bool BeginInlineEdit()

Returns

bool

Returns true if the process is successful.

CancelEdit()

Close the currently active editor and discard changes.

Declaration

cs-api-definition
public virtual bool CancelEdit()

Returns

bool

true on successful cancellation.

CloseEditor()

Ends the edit operation without committing the changes

Declaration

cs-api-definition
public bool CloseEditor()

Returns

bool

true on success.

Dispose()

Disposes all resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

EndEdit()

Commits any changes and ends the edit operation on the current cell.

Declaration

cs-api-definition
public virtual bool EndEdit()

Returns

bool

true on success.

EndEditCore(bool)

Finishes the editing process.

Declaration

cs-api-definition
protected virtual bool EndEditCore(bool cancel)

Parameters

cancel

bool

A value that indicates whether the operation should be canceled.

Returns

bool

returns true if successful and the editor is closed.

GetDefaultEditor(IEditorProvider)

Gets the default editor for the specified provider.

Declaration

cs-api-definition
public virtual IInputEditor GetDefaultEditor(IEditorProvider provider)

Parameters

provider

IEditorProvider

The IEditorProvider to get editor for.

Returns

IInputEditor

An instance of IInputEditor if successful.

Implements IEditorManager.GetDefaultEditor(IEditorProvider)

IsPermanentEditor(Type)

Checks whether there is a permanent editor associated with the specified type.

Declaration

cs-api-definition
public virtual bool IsPermanentEditor(Type editorType)

Parameters

editorType

Type

The type to check.

Returns

bool

true if it exists permanent editor for the given type.

Implements IEditorManager.IsPermanentEditor(Type)

RegisterPermanentEditorType(Type)

Register a permanent editor for specific type.

Declaration

cs-api-definition
public virtual void RegisterPermanentEditorType(Type editor)

Parameters

editor

Type

The type to register.

Implements IEditorManager.RegisterPermanentEditorType(Type)

RemoveEditor()

Remove the active editor

Declaration

cs-api-definition
protected virtual void RemoveEditor()