Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTextBox

    An input component for single line text entry.

    Inheritance
    System.Object
    RadzenComponent
    FormComponent<System.String>
    FormComponentWithAutoComplete<System.String>
    RadzenTextBox
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponentWithAutoComplete<String>.AutoCompleteType
    FormComponentWithAutoComplete<String>.AutoCompleteAttribute
    FormComponentWithAutoComplete<String>.DefaultAutoCompleteAttribute
    FormComponentWithAutoComplete<String>.SetParametersAsync(ParameterView)
    FormComponentWithAutoComplete<String>.DefaultAriaAutoCompleteAttribute
    FormComponentWithAutoComplete<String>.AriaAutoCompleteAttribute
    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>.Value
    FormComponent<String>.Change
    FormComponent<String>.FieldIdentifier
    FormComponent<String>.ValueExpression
    FormComponent<String>.Dispose()
    FormComponent<String>.GetValue()
    FormComponent<String>.OnContextMenu(MouseEventArgs)
    FormComponent<String>.GetClassList(String)
    FormComponent<String>.FormFieldContext
    FormComponent<String>.CurrentPlaceholder
    FormComponent<String>.FocusAsync()
    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.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 RadzenTextBox : FormComponentWithAutoComplete<string>, IDisposable, IRadzenFormComponent
    Examples
    <RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Properties

    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.

    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.

    Trim

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

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

    true if trimming is enabled; otherwise, false.

    Methods

    GetComponentCssClass()

    Gets the component CSS class.

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

    GetId()

    Gets the unique identifier.

    Declaration
    protected override string GetId()
    Returns
    Type Description
    System.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 elementt.

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

    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