Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTextBox

    An input component for single line text entry.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    FormComponent<string>
    FormComponentWithAutoComplete<string>
    RadzenTextBox
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponentWithAutoComplete<string>.SetParametersAsync(ParameterView)
    FormComponentWithAutoComplete<string>.AutoCompleteType
    FormComponentWithAutoComplete<string>.AutoCompleteAttribute
    FormComponentWithAutoComplete<string>.DefaultAutoCompleteAttribute
    FormComponentWithAutoComplete<string>.DefaultAriaAutoCompleteAttribute
    FormComponentWithAutoComplete<string>.AriaAutoCompleteAttribute
    FormComponent<string>._value
    FormComponent<string>.Dispose()
    FormComponent<string>.GetValue()
    FormComponent<string>.OnContextMenu(MouseEventArgs)
    FormComponent<string>.GetClassList(string)
    FormComponent<string>.FocusAsync()
    FormComponent<string>.Name
    FormComponent<string>.TabIndex
    FormComponent<string>.Placeholder
    FormComponent<string>.Disabled
    FormComponent<string>.EditContext
    FormComponent<string>.Form
    FormComponent<string>.ValueChanged
    FormComponent<string>.HasValue
    FormComponent<string>.IsBound
    FormComponent<string>.Value
    FormComponent<string>.Change
    FormComponent<string>.FieldIdentifier
    FormComponent<string>.ValueExpression
    FormComponent<string>.FormFieldContext
    FormComponent<string>.CurrentPlaceholder
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.GetCssClass()
    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 RadzenTextBox : FormComponentWithAutoComplete<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
    Examples
    <RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Constructors

    RadzenTextBox()

    An input component for single line text entry.

    Declaration
    public RadzenTextBox()
    Examples
    <RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Properties

    Immediate

    Gets or sets a value indicating whether the component should update the value immediately when the user types. Set to false by default.

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

    MaxLength

    Gets or sets the maximum allowed text length.

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

    The maximum length.

    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.

    Trim

    Specifies whether to remove any leading or trailing whitespace from the value. Set to false by default.

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

    true if trimming is enabled; otherwise, false.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    An input component for single line text entry.

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

    GetComponentCssClass()

    Gets the component CSS class.

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

    GetId()

    Gets the unique identifier.

    Declaration
    protected override string GetId()
    Returns
    Type Description
    string

    Returns the id attribute (if specified) or generates a random one.

    Overrides
    RadzenComponent.GetId()

    OnChange(ChangeEventArgs)

    Handles change event of the built-in input element.

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

    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