Class GridViewEditManager
Used to manage editors in GridVisualElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewEditManager : IEditorManager, IDisposable, IGridViewEventListener
Constructors
GridViewEditManager(RadGridViewElement)
Initializes a new instance of the GridViewEditManager class.
Declaration
public GridViewEditManager(RadGridViewElement gridViewElement)
Parameters
RadGridViewElement
gridViewElement
The RadGridView, RadGridViewElement associated with this class. |
Properties
ActiveEditor
Gets the active editor
Declaration
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
public bool CloseEditorWhenValidationFails { get; set; }
Property Value
System.Boolean
|
GridViewElement
The instance of RadGridViewElement associated with this class.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
RadGridViewElement
|
IsInEditMode
Gets a value indicating whether the cell is in edit mode.
Declaration
public bool IsInEditMode { get; }
Property Value
System.Boolean
|
Methods
BeginEdit()
Puts the current cell in edit mode.
Declaration
public virtual bool BeginEdit()
Returns
System.Boolean
Returns true if the process is successful. |
CancelEdit()
Close the currently active editor and discard changes.
Declaration
public virtual bool CancelEdit()
Returns
System.Boolean
true on successful cancellation. |
CloseEditor()
Ends the edit operation without committing the changes
Declaration
public virtual bool CloseEditor()
Returns
System.Boolean
true on success. |
Dispose()
Disposes all resources.
Declaration
public void Dispose()
Implements
EndEdit()
Commits any changes and ends the edit operation on the current cell.
Declaration
public virtual bool EndEdit()
Returns
System.Boolean
true on success. |
EndEditCore(Boolean, Boolean)
Finishes the editing process.
Declaration
protected virtual bool EndEditCore(bool validate, bool cancel)
Parameters
System.Boolean
validate
|
System.Boolean
cancel
A value that indicates whether the operation should be canceled. |
Returns
System.Boolean
returns true if successful and the editor is closed. |
GetDefaultEditor(IEditorProvider)
Gets the default editor for the specified provider.
Declaration
public virtual IInputEditor GetDefaultEditor(IEditorProvider provider)
Parameters
IEditorProvider
provider
The IEditorProvider to get editor for. |
Returns
IInputEditor
An instance of IInputEditor if successful. |
Implements
InitializeEditor(IInputEditor)
Initializes the editor.
Declaration
protected virtual void InitializeEditor(IInputEditor activeEditor)
Parameters
IInputEditor
activeEditor
An instance of IInputEditor |
IsPermanentEditor(Type)
Checks whether there is a permanent editor associated with the specified type.
Declaration
public virtual bool IsPermanentEditor(Type editorType)
Parameters
System.Type
editorType
The type to check. |
Returns
System.Boolean
true if it exists permanent editor for the given type. |
Implements
OnPositionChanged(PositionChangedEventArgs)
Raises the PositionChanged event.
Declaration
protected virtual void OnPositionChanged(PositionChangedEventArgs args)
Parameters
PositionChangedEventArgs
args
The PositionChangedEventArgs instance containing the event data. |
OnPositionChanging(PositionChangingEventArgs)
Raises the PositionChanging event.
Declaration
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters
PositionChangingEventArgs
args
The PositionChangingEventArgs instance containing the event data. |
RegisterPermanentEditorType(Type)
Register a permanent editor for specific type.
Declaration
public void RegisterPermanentEditorType(Type editor)
Parameters
System.Type
editor
The type to register. |
Implements
Explicit Interface Implementations
IGridViewEventListener.AnalyzeQueue(List<GridViewEvent>)
Declaration
bool IGridViewEventListener.AnalyzeQueue(List<GridViewEvent> events)
Parameters
System.Collections.Generic.List<GridViewEvent>
events
|
Returns
System.Boolean
|
Implements
IGridViewEventListener.DesiredEvents
Declaration
GridEventType IGridViewEventListener.DesiredEvents { get; }
Returns
GridEventType
|
Implements
IGridViewEventListener.DesiredProcessMode
Declaration
GridEventProcessMode IGridViewEventListener.DesiredProcessMode { get; }
Returns
GridEventProcessMode
|
Implements
IGridViewEventListener.PostProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PostProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent
eventData
|
Returns
GridViewEventResult
|
Implements
IGridViewEventListener.PreProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PreProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent
eventData
|
Returns
GridViewEventResult
|
Implements
IGridViewEventListener.Priority
Declaration
EventListenerPriority IGridViewEventListener.Priority { get; }
Returns
EventListenerPriority
|
Implements
IGridViewEventListener.ProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
Parameters
GridViewEvent
eventData
|
Returns
GridViewEventResult
|