Back to Devexpress

DxMemo.TextChanged Event

blazor-devexpress-dot-blazor-dot-dxmemo-133d01be.md

latest1.6 KB
Original Source

DxMemo.TextChanged Event

Fires after the editor text 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.
OnInput and OnDelayedInputTextChanged acts as a standard HTML input event.

Use the TextChanged event to handle the Memo’s text change.

razor
<DxMemo Text="Some text"/>
        TextChanged="@((newValue) => OnTextChanged(newValue))">
</DxMemo>

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

You can also use the DevExpress.Blazor.DxMemo.TextChanging event to validate/cancel user input.

See Also

DxMemo Class

DxMemo Members

DevExpress.Blazor Namespace