Class
GridSpinEditor

Represents a spin editor in RadGridView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridSpinEditor : BaseGridEditor, IInputEditor, IValueEditor, ISupportInitialize

Inheritance: objectBaseInputEditorBaseGridEditorGridSpinEditor

Implements: IInputEditorISupportInitializeIValueEditor

Inherited Members BaseGridEditor.Initialize(object, object)BaseGridEditor.OnValueChanging(ValueChangingEventArgs)BaseGridEditor.OnValueChanged()BaseGridEditor.OnMouseWheel(MouseEventArgs)BaseGridEditor.EndEditOnLostFocusBaseGridEditor.ClearCellTextBaseInputEditor.isInitializingBaseInputEditor.originalValueBaseInputEditor.BeginInit()BaseInputEditor.EndInit()BaseInputEditor.OnValidating(CancelEventArgs)BaseInputEditor.OnValidated()BaseInputEditor.OnValidationError(ValidationErrorEventArgs)BaseInputEditor.IsActiveBaseInputEditor.IsInitalizingBaseInputEditor.IsInBeginEditModeBaseInputEditor.OwnerElementBaseInputEditor.RightToLeftBaseInputEditor.EditorManagerBaseInputEditor.EditorElementBaseInputEditor.ValueChangingBaseInputEditor.ValueChangedBaseInputEditor.ValidatingBaseInputEditor.ValidatedBaseInputEditor.ValidationError

Constructors

GridSpinEditor()

Initializes a new instance of the GridSpinEditor class.

Declaration

cs-api-definition
public GridSpinEditor()

Properties

DataType

Gets the type of the editor value

Declaration

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

Property Value

Type

Overrides BaseGridEditor.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

IsModified

Gets a value indicating whether the editor value is modified.

Declaration

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

Property Value

bool

Overrides BaseInputEditor.IsModified

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 value.

Declaration

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

Property Value

object

The value.

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()

OnKeyDown(KeyEventArgs)

Translates system key down events to the owner element.

Declaration

cs-api-definition
public override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

Overrides BaseGridEditor.OnKeyDown(KeyEventArgs)

OnKeyUp(KeyEventArgs)

Handles the key up events in the editor.

Declaration

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

Parameters

e

KeyEventArgs

A System.Windows.Forms.KeyEventArgs that contains the event data.

Validate()

Validates the value currently entered in the editor.

Declaration

cs-api-definition
public override bool Validate()

Returns

bool

Overrides BaseGridEditor.Validate()