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
Rad The Rad |
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
System.
|
GridViewElement
The instance of Rad
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
IsInEditMode
Gets a value indicating whether the cell is in edit mode.
Declaration
public bool IsInEditMode { get; }
Property Value
System.
|
Methods
BeginEdit()
Puts the current cell in edit mode.
Declaration
public virtual bool BeginEdit()
Returns
System. Returns true if the process is successful. |
CancelEdit()
Close the currently active editor and discard changes.
Declaration
public virtual bool CancelEdit()
Returns
System. true on successful cancellation. |
CloseEditor()
Ends the edit operation without committing the changes
Declaration
public virtual bool CloseEditor()
Returns
System. 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. true on success. |
EndEditCore(Boolean, Boolean)
Finishes the editing process.
Declaration
protected virtual bool EndEditCore(bool validate, bool cancel)
Parameters
System.
|
System. A value that indicates whether the operation should be canceled. |
Returns
System. 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
IEditor The IEditor |
Returns
IInput An instance of IInput |
Implements
InitializeEditor(IInputEditor)
Initializes the editor.
Declaration
protected virtual void InitializeEditor(IInputEditor activeEditor)
Parameters
IInput An instance of IInput |
IsPermanentEditor(Type)
Checks whether there is a permanent editor associated with the specified type.
Declaration
public virtual bool IsPermanentEditor(Type editorType)
Parameters
System. The type to check. |
Returns
System. true if it exists permanent editor for the given type. |
Implements
OnPositionChanged(PositionChangedEventArgs)
Raises the Position
Declaration
protected virtual void OnPositionChanged(PositionChangedEventArgs args)
Parameters
Position The Position |
OnPositionChanging(PositionChangingEventArgs)
Raises the Position
Declaration
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters
Position The Position |
RegisterPermanentEditorType(Type)
Register a permanent editor for specific type.
Declaration
public void RegisterPermanentEditorType(Type editor)
Parameters
System. The type to register. |
Implements
Explicit Interface Implementations
IGridViewEventListener.AnalyzeQueue(List<GridViewEvent>)
Declaration
bool IGridViewEventListener.AnalyzeQueue(List<GridViewEvent> events)
Parameters
System.
|
Returns
System.
|
Implements
IGridViewEventListener.DesiredEvents
Declaration
GridEventType IGridViewEventListener.DesiredEvents { get; }
Returns
Implements
IGridViewEventListener.DesiredProcessMode
Declaration
GridEventProcessMode IGridViewEventListener.DesiredProcessMode { get; }
Returns
Implements
IGridViewEventListener.PostProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PostProcessEvent(GridViewEvent eventData)
Parameters
Grid
|
Returns
Implements
IGridViewEventListener.PreProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.PreProcessEvent(GridViewEvent eventData)
Parameters
Grid
|
Returns
Implements
IGridViewEventListener.Priority
Declaration
EventListenerPriority IGridViewEventListener.Priority { get; }
Returns
Implements
IGridViewEventListener.ProcessEvent(GridViewEvent)
Declaration
GridViewEventResult IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
Parameters
Grid
|