Edits numeric PropertyGrid values with a spin editor, honoring property ranges and nullable numeric types.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridSpinEditor : BaseSpinEditor, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectBaseInputEditorBaseSpinEditorPropertyGridSpinEditor
Implements:
Inherited Members
Constructors
public PropertyGridSpinEditor()
Properties
Gets whether the current numeric value differs from the original value, treating null and DBNull as empty values.
public override bool IsModified { get; }
Overrides:
Methods
Configures precision and null input from the edited property type and current multi-selection value, initializes the base editor, and applies the property's numeric bounds.
Commits on Enter unless the modifiers are exactly Control, cancels on Escape, and clears a fully selected value on Delete without validating it.
protected override void OnKeyDown(KeyEventArgs e)
The key-down event data.
Overrides:
Validates when Left or Right moves the caret to the corresponding text boundary, accounting for right-to-left layout.
protected override void OnKeyUp(KeyEventArgs e)
The key-up event data.
Overrides:
Ends the edit when focus leaves the owning PropertyGrid control and the visual row is still valid.
public override void OnLostFocus()
Overrides:
Notifies the owning PropertyGrid table after the editor value changes.
public override void OnValueChanged()
Overrides:
Forwards the editor's proposed value change to the owning PropertyGrid table.
public override void OnValueChanging(ValueChangingEventArgs e)
The proposed value and cancellation state.
Overrides:
Applies a RadRangeAttribute when present; otherwise assigns built-in bounds for supported non-nullable numeric type codes. Nullable numeric types are not unwrapped here and receive no fallback bounds.
protected virtual void SetMinAndMaxValue(PropertyGridItem item)
The numeric PropertyGrid item being edited.