New to Telerik UI for WinFormsStart a free 30-day trial

Abstract class that represents basic logic for editor

Definition

Constructors

C#
protected BaseInputEditor()

Fields

C#
protected bool isInitializing
C#
protected object originalValue

Properties

Gets the type of the editor value

C#
public abstract Type DataType { get; }

Gets the RadElement associated with this editor.

C#
public virtual RadElement EditorElement { get; }
C#
public IEditorManager EditorManager { get; set; }

Implements: IInputEditor.EditorManager

Gets a value indicating whether this is the active editor in grid.

C#
public bool IsActive { get; }

Gets a value indicating whether the editor is in BeginMode mode.

C#
public bool IsInBeginEditMode { get; }

Gets a value indicating whether the editor is initializing.

C#
public bool IsInitalizing { get; }

Gets a value indicating whether the editor value is modified.

C#
public virtual bool IsModified { get; }

Implements: IInputEditor.IsModified

Gets the element that owns this editor.

C#
public RadElement OwnerElement { get; protected set; }

Gets a value indicating whether the editor is in RightToLeft mode.

C#
public bool RightToLeft { get; }

Gets or sets the editor value.

C#
public virtual object Value { get; set; }

Implements: IValueEditor.Value

Methods

Starts the editing process. Used internally in RadGridView.

C#
public virtual void BeginEdit()

Implements: IValueEditor.BeginEdit()

Begins the editor initialization process.

C#
public void BeginInit()

Implements: ISupportInitialize.BeginInit()

Creates a new editor element.

C#
protected abstract RadElement CreateEditorElement()
Returns:

RadElement

a RadElement if successful

Finishes the editing process. Used internally in RadGridView.

C#
public virtual bool EndEdit()
Returns:

bool

Implements: IValueEditor.EndEdit()

Finishes the editor initialization process.

C#
public void EndInit()

Implements: ISupportInitialize.EndInit()

Initializes the editor. Used internally in RadGridView.

C#
public virtual void Initialize(object owner, object value)
Parameters:ownerobject

The owner of this editor.

valueobject

The value of the editor.

Implements: IValueEditor.Initialize(object, object)

Fires the Validated event.

C#
public virtual void OnValidated()

Fires the Validating event.

C#
public virtual void OnValidating(CancelEventArgs e)
Parameters:eCancelEventArgs

A CancelEventArgs that contains the event data.

Fires the ValidationError event.

C#
public virtual void OnValidationError(ValidationErrorEventArgs args)
Parameters:argsValidationErrorEventArgs

Fires the ValueChanged event.

C#
public virtual void OnValueChanged()

Fires the ValueChanging event.

C#
public virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters:eValueChangingEventArgs

A ValueChangingEventArgs that contains the event data.

Validates the value currently entered in the editor.

C#
public virtual bool Validate()
Returns:

bool

Implements: IValueEditor.Validate()

Events

Fires when the editor has finished validating.

C#
public event EventHandler Validated

Implements: IValueEditor.Validated

Fires when the editor is validating.

C#
public event CancelEventHandler Validating

Implements: IValueEditor.Validating

Fires when a validation error is occurred.

C#
public event ValidationErrorEventHandler ValidationError

Implements: IValueEditor.ValidationError

Fires when the editor value has been changed.

C#
public event EventHandler ValueChanged

Implements: IValueEditor.ValueChanged

Fires when changing the value of the editor.

C#
public event ValueChangingEventHandler ValueChanging

Implements: IValueEditor.ValueChanging