Class
BaseSpinEditor

Represents a numeric up/down editor.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class BaseSpinEditor : BaseInputEditor, IInputEditor, IValueEditor, ISupportInitialize

Inheritance: objectBaseInputEditorBaseSpinEditor

Derived Classes: GanttViewSpinEditorListViewSpinEditorPropertyGridSpinEditorTreeViewSpinEditor

Implements: IInputEditorISupportInitializeIValueEditor

Inherited Members BaseInputEditor.isInitializingBaseInputEditor.originalValueBaseInputEditor.BeginInit()BaseInputEditor.EndInit()BaseInputEditor.OnValueChanging(ValueChangingEventArgs)BaseInputEditor.OnValueChanged()BaseInputEditor.OnValidating(CancelEventArgs)BaseInputEditor.OnValidated()BaseInputEditor.OnValidationError(ValidationErrorEventArgs)BaseInputEditor.IsActiveBaseInputEditor.IsInitalizingBaseInputEditor.IsInBeginEditModeBaseInputEditor.OwnerElementBaseInputEditor.RightToLeftBaseInputEditor.EditorManagerBaseInputEditor.IsModifiedBaseInputEditor.EditorElementBaseInputEditor.ValueChangingBaseInputEditor.ValueChangedBaseInputEditor.ValidatingBaseInputEditor.ValidatedBaseInputEditor.ValidationError

Constructors

BaseSpinEditor()

Declaration

cs-api-definition
public BaseSpinEditor()

Fields

selectionLength

Declaration

cs-api-definition
protected int selectionLength

Field Value

int

selectionStart

Declaration

cs-api-definition
protected int selectionStart

Field Value

int

Properties

DataType

Gets the type of the editor value

Declaration

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

Property Value

Type

Overrides BaseInputEditor.DataType

DecimalPlaces

Gets or sets the number of decimal places to display in the editor.

Declaration

cs-api-definition
public int DecimalPlaces { get; set; }

Property Value

int

MaxValue

Gets or sets the maximum value that could be set in the editor.

Declaration

cs-api-definition
public decimal MaxValue { get; set; }

Property Value

decimal

MinValue

Gets or sets the minimum value that could be set in the editor.

Declaration

cs-api-definition
public decimal MinValue { get; set; }

Property Value

decimal

Step

Gets or sets the value which is added to/subtracted from the current value of the editor.

Declaration

cs-api-definition
public decimal Step { get; set; }

Property Value

decimal

ThousandsSeparator

Gets or sets a value indicating whether a thousands separator is displayed in the editor.

Declaration

cs-api-definition
public bool ThousandsSeparator { get; set; }

Property Value

bool

Value

Gets or sets the editor value.

Declaration

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

Property Value

object

Overrides BaseInputEditor.Value

ValueType

Gets or sets the type of the value to use in the editor.

Declaration

cs-api-definition
public Type ValueType { get; set; }

Property Value

Type

Methods

BeginEdit()

Starts the editing process. Used internally in RadGridView.

Declaration

cs-api-definition
public override void BeginEdit()

Overrides BaseInputEditor.BeginEdit()

CreateEditorElement()

Creates a new editor element.

Declaration

cs-api-definition
protected override RadElement CreateEditorElement()

Returns

RadElement

a RadElement if successful

Overrides BaseInputEditor.CreateEditorElement()

EndEdit()

Finishes the editing process. Used internally in RadGridView.

Declaration

cs-api-definition
public override bool EndEdit()

Returns

bool

Overrides BaseInputEditor.EndEdit()

Initialize(object, object)

Initializes the editor. Used internally in RadGridView.

Declaration

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

Parameters

owner

object

The owner of this editor.

value

object

The value of the editor.

Overrides BaseInputEditor.Initialize(object, object)

OnKeyDown(KeyEventArgs)

Declaration

cs-api-definition
protected virtual void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnKeyUp(KeyEventArgs)

Declaration

cs-api-definition
protected virtual void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnLostFocus()

Declaration

cs-api-definition
public virtual void OnLostFocus()

Validate()

Validates the value currently entered in the editor.

Declaration

cs-api-definition
public override bool Validate()

Returns

bool

Overrides BaseInputEditor.Validate()