R Khan
R Khan

Reputation: 55

Convert MudTextBox text to upper case when typing

How can i covert MudTextBox text to upper case when typed

<MudTextField Required="true" Label="@languageContainer.Keys["FirstNameUS"]" Variant="Variant.Outlined" 
                                  @bind-Value="person.FirstNamesUS" For="@(() => person.FirstNamesUS)" />

Upvotes: 1

Views: 1649

Answers (1)

Dimitris Maragkos
Dimitris Maragkos

Reputation: 11322

Like this:

<MudTextField Required="true"
              Label="@languageContainer.Keys["FirstNameUS"]"
              Variant="Variant.Outlined"
              T="string"
              Value="person.FirstNamesUS"
              ValueChanged="(value) => person.FirstNamesUS = value.ToUpper()"
              Immediate="true"
              For="@(() => person.FirstNamesUS)" />

TryMudBlazor

Upvotes: 1

Related Questions