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>
    RadzenTextBox
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    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>.SetParametersAsync(ParameterView)
    FormComponent<String>.Dispose()
    FormComponent<String>.GetValue()
    FormComponent<String>.OnContextMenu(MouseEventArgs)
    FormComponent<String>.GetClassList(String)
    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 RadzenTextBox : FormComponent<string>, IDisposable, IRadzenFormComponent
    Examples
    <RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Properties

    AutoComplete

    Gets or sets a value indicating the browser built-in autocomplete is enabled.

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

    true if input automatic complete is enabled; otherwise, false.

    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()

    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

    Boost your Blazor development with Radzen

    Radzen is a desktop tool that gives you the power to create line of business applications. Build and launch Blazor apps visually, while we generate clean code for you.

    Learn More

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