Class
BaseInputEditor

Abstract class that represents basic logic for editor

Definition

Constructors

BaseInputEditor()

Declaration

cs-api-definition
protected BaseInputEditor()

Fields

isInitializing

Declaration

cs-api-definition
protected bool isInitializing

Field Value

bool

originalValue

Declaration

cs-api-definition
protected object originalValue

Field Value

object

Properties

DataType

Gets the type of the editor value

Declaration

cs-api-definition
public abstract Type DataType { get; }

Property Value

Type

EditorElement

Gets the RadElement associated with this editor.

Declaration

cs-api-definition
public virtual RadElement EditorElement { get; }

Property Value

RadElement

EditorManager

Declaration

cs-api-definition
public IEditorManager EditorManager { get; set; }

Property Value

IEditorManager

Implements IInputEditor.EditorManager

IsActive

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

Declaration

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

Property Value

bool

IsInBeginEditMode

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

Declaration

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

Property Value

bool

IsInitalizing

Gets a value indicating whether the editor is initializing.

Declaration

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

Property Value

bool

IsModified

Gets a value indicating whether the editor value is modified.

Declaration

cs-api-definition
public virtual bool IsModified { get; }

Property Value

bool

Implements IInputEditor.IsModified

OwnerElement

Gets the element that owns this editor.

Declaration

cs-api-definition
public RadElement OwnerElement { get; protected set; }

Property Value

RadElement

RightToLeft

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

Declaration

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

Property Value

bool

Value

Gets or sets the editor value.

Declaration

cs-api-definition
public virtual object Value { get; set; }

Property Value

object

Implements IValueEditor.Value

Methods

BeginEdit()

Starts the editing process. Used internally in RadGridView.

Declaration

cs-api-definition
public virtual void BeginEdit()

Implements IValueEditor.BeginEdit()

BeginInit()

Begins the editor initialization process.

Declaration

cs-api-definition
public void BeginInit()

Implements ISupportInitialize.BeginInit()

CreateEditorElement()

Creates a new editor element.

Declaration

cs-api-definition
protected abstract RadElement CreateEditorElement()

Returns

RadElement

a RadElement if successful

EndEdit()

Finishes the editing process. Used internally in RadGridView.

Declaration

cs-api-definition
public virtual bool EndEdit()

Returns

bool

Implements IValueEditor.EndEdit()

EndInit()

Finishes the editor initialization process.

Declaration

cs-api-definition
public void EndInit()

Implements ISupportInitialize.EndInit()

Initialize(object, object)

Initializes the editor. Used internally in RadGridView.

Declaration

cs-api-definition
public virtual void Initialize(object owner, object value)

Parameters

owner

object

The owner of this editor.

value

object

The value of the editor.

Implements IValueEditor.Initialize(object, object)

OnValidated()

Fires the Validated event.

Declaration

cs-api-definition
public virtual void OnValidated()

OnValidating(CancelEventArgs)

Fires the Validating event.

Declaration

cs-api-definition
public virtual void OnValidating(CancelEventArgs e)

Parameters

e

CancelEventArgs

A CancelEventArgs that contains the event data.

OnValidationError(ValidationErrorEventArgs)

Fires the ValidationError event.

Declaration

cs-api-definition
public virtual void OnValidationError(ValidationErrorEventArgs args)

Parameters

args

ValidationErrorEventArgs

OnValueChanged()

Fires the ValueChanged event.

Declaration

cs-api-definition
public virtual void OnValueChanged()

OnValueChanging(ValueChangingEventArgs)

Fires the ValueChanging event.

Declaration

cs-api-definition
public virtual void OnValueChanging(ValueChangingEventArgs e)

Parameters

e

ValueChangingEventArgs

A ValueChangingEventArgs that contains the event data.

Validate()

Validates the value currently entered in the editor.

Declaration

cs-api-definition
public virtual bool Validate()

Returns

bool

Implements IValueEditor.Validate()

Events

Validated

Fires when the editor has finished validating.

Declaration

cs-api-definition
public event EventHandler Validated

Event Value

EventHandler

Implements IValueEditor.Validated

Validating

Fires when the editor is validating.

Declaration

cs-api-definition
public event CancelEventHandler Validating

Event Value

CancelEventHandler

Implements IValueEditor.Validating

ValidationError

Fires when a validation error is occurred.

Declaration

cs-api-definition
public event ValidationErrorEventHandler ValidationError

Event Value

ValidationErrorEventHandler

Implements IValueEditor.ValidationError

ValueChanged

Fires when the editor value has been changed.

Declaration

cs-api-definition
public event EventHandler ValueChanged

Event Value

EventHandler

Implements IValueEditor.ValueChanged

ValueChanging

Fires when changing the value of the editor.

Declaration

cs-api-definition
public event ValueChangingEventHandler ValueChanging

Event Value

ValueChangingEventHandler

Implements IValueEditor.ValueChanging