Back to Devexpress

DxMaskedInput<T>.TextChanged Event

blazor-devexpress-dot-blazor-dot-dxmaskedinput-1-593dc0dc.md

latest1.6 KB
Original Source

DxMaskedInput<T>.TextChanged Event

Fires when a text editor’s content is changed.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public EventCallback<string> TextChanged { get; set; }

Parameters

TypeDescription
String

A delegate method that accepts the editor’s text as a parameter.

|

Remarks

The TextChanged event does not re-render the component. This event’s behavior depends on the BindValueMode property value:

ValueDescription
OnLostFocusTextChanged acts as a standard HTML change event.
OnInputTextChanged acts as a standard HTML input event.

Use the TextChanged event to handle a text change.

razor
<DxMaskedInput @bind-Value="@Value" 
               Mask="(999) 000-00-00" 
               TextChanged=@OnTextChanged>
</DxMaskedInput>

@code {
    string Value { get; set; }

    void OnTextChanged(string newValue) {
        @* Your code *@
    }
}

See Also

DxMaskedInput<T> Class

DxMaskedInput<T> Members

DevExpress.Blazor Namespace