Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenNumeric<TValue>

    RadzenNumeric component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    FormComponent<TValue>
    FormComponentWithAutoComplete<TValue>
    RadzenNumeric<TValue>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponentWithAutoComplete<TValue>.AutoCompleteType
    FormComponentWithAutoComplete<TValue>.AutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.DefaultAutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.DefaultAriaAutoCompleteAttribute
    FormComponentWithAutoComplete<TValue>.AriaAutoCompleteAttribute
    FormComponent<TValue>._value
    FormComponent<TValue>.Dispose()
    FormComponent<TValue>.GetValue()
    FormComponent<TValue>.OnContextMenu(MouseEventArgs)
    FormComponent<TValue>.GetClassList(string)
    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>.Change
    FormComponent<TValue>.FieldIdentifier
    FormComponent<TValue>.ValueExpression
    FormComponent<TValue>.FormFieldContext
    FormComponent<TValue>.CurrentPlaceholder
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenNumeric<TValue> : FormComponentWithAutoComplete<TValue>, IComponent, IHandleEvent, IHandleAfterRender, 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}")) />

    Constructors

    RadzenNumeric()

    RadzenNumeric component.

    Declaration
    public RadzenNumeric()
    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
    [Parameter]
    public Func<string, TValue> ConvertValue { get; set; }
    Property Value
    Type Description
    Func<string, TValue>

    DownAriaLabel

    Gets or sets the down button aria-label attribute.

    Declaration
    [Parameter]
    public string DownAriaLabel { get; set; }
    Property Value
    Type Description
    string

    Format

    Gets or sets the format.

    Declaration
    [Parameter]
    public string Format { get; set; }
    Property Value
    Type Description
    string

    The format.

    FormattedValue

    Gets or sets the formatted value.

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

    The formatted value.

    HasValue

    Gets a value indicating whether this instance has value.

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

    true if this instance has value; otherwise, false.

    Overrides
    FormComponent<TValue>.HasValue

    InputAttributes

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

    Declaration
    [Parameter]
    public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, object>

    The attributes.

    Max

    Determines the maximum value.

    Declaration
    [Parameter]
    public decimal? Max { get; set; }
    Property Value
    Type Description
    decimal?

    The maximum value.

    MaxLength

    Gets or sets the maximum allowed text length.

    Declaration
    [Parameter]
    public long? MaxLength { get; set; }
    Property Value
    Type Description
    long?

    The maximum length.

    Min

    Determines the minimum value.

    Declaration
    [Parameter]
    public decimal? Min { get; set; }
    Property Value
    Type Description
    decimal?

    The minimum value.

    ReadOnly

    Gets or sets a value indicating whether is read only.

    Declaration
    [Parameter]
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    bool

    true if is read only; otherwise, false.

    ShowUpDown

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

    Declaration
    [Parameter]
    public bool ShowUpDown { get; set; }
    Property Value
    Type Description
    bool

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

    Step

    Gets or sets the step.

    Declaration
    [Parameter]
    public string Step { get; set; }
    Property Value
    Type Description
    string

    The step.

    TextAlign

    Gets or sets the text align.

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

    The text align.

    UpAriaLabel

    Gets or sets the up button aria-label attribute.

    Declaration
    [Parameter]
    public string UpAriaLabel { get; set; }
    Property Value
    Type Description
    string

    Value

    Gets or sets the value.

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

    The value.

    Overrides
    FormComponent<TValue>.Value

    Methods

    BuildRenderTree(RenderTreeBuilder)

    RadzenNumeric component.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    FocusAsync()

    Sets the focus on the input element.

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

    GetComponentCssClass()

    Gets the component CSS class.

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

    OnChange(ChangeEventArgs)

    Handles the Change event.

    Declaration
    protected Task OnChange(ChangeEventArgs args)
    Parameters
    Type Name Description
    ChangeEventArgs args

    The ChangeEventArgs instance containing the event data.

    Returns
    Type Description
    Task

    SetParametersAsync(ParameterView)

    Sets the parameters asynchronous.

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

    The parameters.

    Returns
    Type Description
    Task

    Task.

    Overrides
    FormComponentWithAutoComplete<TValue>.SetParametersAsync(ParameterView)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    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