DxSearchBox.TextChanged Event
Fires after the editor text changed.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<string> TextChanged { get; set; }
Parameters
| Type | Description |
|---|---|
| String | A new Text value. |
Remarks
Use the TextChanged event to handle text changes.
<DxSearchBox Text="@Value"
TextChanged="@OnTextChanged"
aria-label="Search" />
<p class="cw-320 mt-3">
Search text: <b>@Value</b>
</p>
@code {
string Value { get; set; }
void OnTextChanged(string newValue) {
Value = newValue;
}
}
Related API
- BindValueMode
- Specifies when to update the editor’s text.
- TextChanging
- Fires when a user is changing text in the editor. Use this event to validate/cancel user input.
See Also