Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MudBlazor - Search table onkeypress

I am trying to figure out how I can apply "search as you type" feature to the MudTextField component using the MudBlazor table component. As of now, it searches only when enter key is pressed as seen here - MudBlazor Table Example

like image 882
BlockeeR Avatar asked Aug 31 '25 16:08

BlockeeR


1 Answers

Use Immediate="true" on the search box component to trigger the search on each keystroke. Like so:

<MudTextField @bind-Value="searchString" Immediate="true" Placeholder="Search" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"></MudTextField>
like image 84
Eric King Avatar answered Sep 02 '25 12:09

Eric King