NumericKeyboardEventArgs Class

Supplies information about a KeyDown event that is being raised. Wraps the original KeyboardEventArgs and allows the handler to prevent the default ArrowUp/ArrowDown increment/decrement behavior.

Inheritance

Object

NumericKeyboardEventArgs

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class NumericKeyboardEventArgs

Constructors

NumericKeyboardEventArgslink

Supplies information about a KeyDown event that is being raised. Wraps the original KeyboardEventArgs and allows the handler to prevent the default ArrowUp/ArrowDown increment/decrement behavior.

Declaration
public NumericKeyboardEventArgs()

Properties

IsDefaultPreventedlink

Gets a value indicating whether the default action has been prevented.

Declaration
public bool IsDefaultPrevented { get; }
Property Value
Type Description
boolGets a value indicating whether the default action has been prevented.

OriginalEventlink

Gets the original KeyboardEventArgs raised by the underlying input element.

Declaration
public KeyboardEventArgs OriginalEvent { get; set; }
Property Value
Type Description
KeyboardEventArgsGets the original KeyboardEventArgs raised by the underlying input element.

Methods

PreventDefaultlink

Prevents the default action (ArrowUp/ArrowDown increment/decrement) from occurring.

Declaration
public void PreventDefault()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙