Class
VirtualGridSpinEditor

Represents a spin editor in RadVirtualGrid.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class VirtualGridSpinEditor : BaseVirtualGridEditor, IInputEditor, IValueEditor, ISupportInitialize

Inheritance: objectBaseInputEditorBaseVirtualGridEditorVirtualGridSpinEditor

Implements: IInputEditorISupportInitializeIValueEditor

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

Constructors

VirtualGridSpinEditor()

Initializes a new instance of the VirtualGridSpinEditor class.

Declaration

cs-api-definition
public VirtualGridSpinEditor()

Properties

DataType

Gets the type of the editor value

Declaration

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

Property Value

Type

Overrides BaseVirtualGridEditor.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 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()

Ends the edit.

Declaration

cs-api-definition
public override bool EndEdit()

Returns

bool

Overrides BaseInputEditor.EndEdit()

Initialize(object, object)

Initializes the editor. Used internally in RadVirtualGrid.

Declaration

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

Parameters

owner

object

The VirtualGridCellElement that will host this editor.

value

object

The initial value of the editor.

Overrides BaseVirtualGridEditor.Initialize(object, object)

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 BaseVirtualGridEditor.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 spin editor.

Declaration

cs-api-definition
public override bool Validate()

Returns

bool

Overrides BaseVirtualGridEditor.Validate()