Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenNumeric<TValue>

    RadzenNumeric component.

    Inheritance
    System.Object
    RadzenComponent
    FormComponent<TValue>
    FormComponentWithAutoComplete<TValue>
    RadzenNumeric<TValue>
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponentWithAutoComplete<TValue>.AutoCompleteType
    FormComponentWithAutoComplete<TValue>.AutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.DefaultAutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.DefaultAriaAutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.AriaAutoCompleteAttribute
    FormComponent<TValue>.Name
    FormComponent<TValue>.TabIndex
    FormComponent<TValue>.Placeholder
    FormComponent<TValue>.Disabled
    FormComponent<TValue>.EditContext
    FormComponent<TValue>.Form
    FormComponent<TValue>.ValueChanged
    FormComponent<TValue>.IsBound
    FormComponent<TValue>._value
    FormComponent<TValue>.Change
    FormComponent<TValue>.FieldIdentifier
    FormComponent<TValue>.ValueExpression
    FormComponent<TValue>.Dispose()
    FormComponent<TValue>.GetValue()
    FormComponent<TValue>.OnContextMenu(MouseEventArgs)
    FormComponent<TValue>.GetClassList(String)
    FormComponent<TValue>.FormFieldContext
    FormComponent<TValue>.CurrentPlaceholder
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.OnInitialized()
    RadzenComponent.Reference
    RadzenComponent.OnAfterRenderAsync(Boolean)
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenNumeric<TValue> : FormComponentWithAutoComplete<TValue>, IDisposable, IRadzenFormComponent
    Type Parameters
    Name Description
    TValue

    The type of the t value.

    Examples
    <RadzenNumeric TValue="int" Min="1" Max="10" Change=@(args => Console.WriteLine($"Value: {args}")) />

    Fields

    input

    Gets input reference.

    Declaration
    protected ElementReference input
    Field Value
    Type Description
    ElementReference

    Properties

    ConvertValue

    Gets or sets the function which returns TValue from string.

    Declaration
    public Func<string, TValue> ConvertValue { get; set; }
    Property Value
    Type Description
    Func<System.String, TValue>

    DownAriaLabel

    Gets or sets the down button aria-label attribute.

    Declaration
    public string DownAriaLabel { get; set; }
    Property Value
    Type Description
    System.String

    Format

    Gets or sets the format.

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    System.String

    The format.

    FormattedValue

    Gets or sets the formatted value.

    Declaration
    protected string FormattedValue { get; set; }
    Property Value
    Type Description
    System.String

    The formatted value.

    HasValue

    Gets a value indicating whether this instance has value.

    Declaration
    public override bool HasValue { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has value; otherwise, false.

    Overrides
    Radzen.FormComponent<TValue>.HasValue

    InputAttributes

    Specifies additional custom attributes that will be rendered by the input.

    Declaration
    public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<System.String, System.Object>

    The attributes.

    Max

    Determines the maximum value.

    Declaration
    public decimal? Max { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Decimal>

    The maximum value.

    MaxLength

    Gets or sets the maximum allowed text length.

    Declaration
    public long? MaxLength { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    The maximum length.

    Min

    Determines the minimum value.

    Declaration
    public decimal? Min { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Decimal>

    The minimum value.

    ReadOnly

    Gets or sets a value indicating whether is read only.

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if is read only; otherwise, false.

    ShowUpDown

    Gets or sets a value indicating whether up down buttons are shown.

    Declaration
    public bool ShowUpDown { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if up down buttons are shown; otherwise, false.

    Step

    Gets or sets the step.

    Declaration
    public string Step { get; set; }
    Property Value
    Type Description
    System.String

    The step.

    TextAlign

    Gets or sets the text align.

    Declaration
    public TextAlign TextAlign { get; set; }
    Property Value
    Type Description
    TextAlign

    The text align.

    UpAriaLabel

    Gets or sets the up button aria-label attribute.

    Declaration
    public string UpAriaLabel { get; set; }
    Property Value
    Type Description
    System.String

    Value

    Gets or sets the value.

    Declaration
    public override TValue Value { get; set; }
    Property Value
    Type Description
    TValue

    The value.

    Overrides
    Radzen.FormComponent<TValue>.Value

    Methods

    FocusAsync()

    Sets the focus on the input element.

    Declaration
    public override async ValueTask FocusAsync()
    Returns
    Type Description
    ValueTask
    Overrides
    Radzen.FormComponent<TValue>.FocusAsync()

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    System.String
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnChange(ChangeEventArgs)

    Handles the Change event.

    Declaration
    protected async Threading.Tasks.Task OnChange(ChangeEventArgs args)
    Parameters
    Type Name Description
    ChangeEventArgs args

    The instance containing the event data.

    Returns
    Type Description
    System.Threading.Tasks.Task

    SetParametersAsync(ParameterView)

    Sets the parameters asynchronous.

    Declaration
    public override async Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    Task

    Task.

    Overrides
    Radzen.FormComponentWithAutoComplete<TValue>.SetParametersAsync(ParameterView)

    Implements

    IDisposable
    IRadzenFormComponent

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT