ClassGridViewEditManager
Used to manage editors in GridVisualElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewEditManager : IEditorManager, IDisposable, IGridViewEventListener
Inheritance: objectGridViewEditManager
Implements:
Constructors
GridViewEditManager(RadGridViewElement)
Initializes a new instance of the GridViewEditManager class.
Declaration
public GridViewEditManager(RadGridViewElement gridViewElement)
Parameters
gridViewElement
The RadGridView, RadGridViewElement associated with this class.
Properties
ActiveEditor
Gets the active editor
Declaration
public IInputEditor ActiveEditor { get; protected set; }
Property Value
CloseEditorWhenValidationFails
Gets or sets a value indicating whether the active editor should be closed when validation process fails.
Declaration
public bool CloseEditorWhenValidationFails { get; set; }
Property Value
GridViewElement
The instance of RadGridViewElement associated with this class.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
IsInEditMode
Gets a value indicating whether the cell is in edit mode.
Methods
BeginEdit()
Puts the current cell in edit mode.
Declaration
public virtual bool BeginEdit()
Returns
Returns true if the process is successful.
CancelEdit()
Close the currently active editor and discard changes.
Declaration
public virtual bool CancelEdit()
Returns
true on successful cancellation.
CloseEditor()
Ends the edit operation without committing the changes
EndEdit()
Commits any changes and ends the edit operation on the current cell.
EndEditCore(bool, bool)
Finishes the editing process.
GetDefaultEditor(IEditorProvider)
Gets the default editor for the specified provider.
Declaration
public virtual IInputEditor GetDefaultEditor(IEditorProvider provider)
Parameters
provider
The IEditorProvider to get editor for.
Returns
An instance of IInputEditor if successful.
Implements
InitializeEditor(IInputEditor)
Initializes the editor.
Declaration
protected virtual void InitializeEditor(IInputEditor activeEditor)
Parameters
activeEditor
An instance of IInputEditor
IsPermanentEditor(Type)
Checks whether there is a permanent editor associated with the specified type.
OnPositionChanged(PositionChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnPositionChanged(PositionChangedEventArgs args)
Parameters
args
The PositionChangedEventArgs instance containing the event data.
OnPositionChanging(PositionChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters
args
The PositionChangingEventArgs instance containing the event data.
RegisterPermanentEditorType(Type)
Register a permanent editor for specific type.
Declaration
public void RegisterPermanentEditorType(Type editor)
Parameters
editor
The type to register.
Implements