BaseSpinEditor
Represents a numeric up/down editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseSpinEditor : BaseInputEditor, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectBaseInputEditorBaseSpinEditor
Derived Classes:
Implements:
Inherited Members
Constructors
public BaseSpinEditor()
Fields
Stores the selected text length captured before the OnKeyDown(KeyEventArgs) hook runs.
protected int selectionLength
Stores the text selection start captured before the OnKeyDown(KeyEventArgs) hook runs.
protected int selectionStart
Properties
Gets decimal, the value type reported by this editor to data-bound consumers.
public override Type DataType { get; }
Overrides:
Gets or sets the number of decimal places to display in the editor.
public int DecimalPlaces { get; set; }
Gets or sets the maximum value that could be set in the editor.
public decimal MaxValue { get; set; }
Gets or sets the minimum value that could be set in the editor.
public decimal MinValue { get; set; }
Gets or sets the value which is added to/subtracted from the current value of the editor.
public decimal Step { get; set; }
Gets or sets a value indicating whether a thousands separator is displayed in the editor.
public bool ThousandsSeparator { get; set; }
Gets the current numeric value after validating the editor text, or null when the text is empty. Assigning a value converts it to a decimal and constrains it to the spin element's range; values that cannot be converted fall back to its minimum.
public override object Value { get; set; }
Overrides:
Methods
Enters edit mode, attaches the spin-element event handlers, selects the text, and focuses the hosted text box.
public override void BeginEdit()
Overrides:
Creates the spin editor element used to display and edit the numeric value.
protected override RadElement CreateEditorElement()
A new BaseSpinEditorElement.
Overrides:
Handles a key-down notification from the spin element. The selection fields are captured before this hook is called.
Handles a key-up notification from the spin element.
Runs when the hosted text box loses focus or the spin element no longer contains focus. Override to handle focus loss for a specialized editor.
public virtual void OnLostFocus()