Class
GridViewEditManager

Used to manage editors in GridVisualElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewEditManager : IEditorManager, IDisposable, IGridViewEventListener

Inheritance: objectGridViewEditManager

Implements: IDisposableIEditorManagerIGridViewEventListener

Constructors

GridViewEditManager(RadGridViewElement)

Initializes a new instance of the GridViewEditManager class.

Declaration

cs-api-definition
public GridViewEditManager(RadGridViewElement gridViewElement)

Parameters

gridViewElement

RadGridViewElement

The RadGridView, RadGridViewElement associated with this class.

Properties

ActiveEditor

Gets the active editor

Declaration

cs-api-definition
public IInputEditor ActiveEditor { get; protected set; }

Property Value

IInputEditor

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

GridViewElement

The instance of RadGridViewElement associated with this class.

Declaration

cs-api-definition
public RadGridViewElement GridViewElement { get; }

Property Value

RadGridViewElement

IsInEditMode

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

Declaration

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

Property Value

bool

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.

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 virtual 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, bool)

Finishes the editing process.

Declaration

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

Parameters

validate

bool

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)

InitializeEditor(IInputEditor)

Initializes the editor.

Declaration

cs-api-definition
protected virtual void InitializeEditor(IInputEditor activeEditor)

Parameters

activeEditor

IInputEditor

An instance of IInputEditor

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)

OnPositionChanged(PositionChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChanged(PositionChangedEventArgs args)

Parameters

args

PositionChangedEventArgs

The PositionChangedEventArgs instance containing the event data.

OnPositionChanging(PositionChangingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChanging(PositionChangingEventArgs args)

Parameters

args

PositionChangingEventArgs

The PositionChangingEventArgs instance containing the event data.

RegisterPermanentEditorType(Type)

Register a permanent editor for specific type.

Declaration

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

Parameters

editor

Type

The type to register.

Implements IEditorManager.RegisterPermanentEditorType(Type)