Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
|
<EditForm Model="@_weatherForecast" OnValidSubmit="OnValidSubmit"> <DataAnnotationsValidator /> <div class="form-row"> <div class="form-group col"> <SfDropDownList TValue="string" TItem="string" DataSource="possibleWeatherForecasts" @bind-Value="_weatherForecast.Weather"></SfDropDownList> </div> </div> <div class="e-footer-content"> <SfButton Content="OK" HtmlAttributes=@(new Dictionary<string, object>() { { "type", "submit" } }) /> </div> </EditForm> private void OnValidSubmit(EditContext editContext) { _wasModified = editContext.IsModified(); _isDialogVisible = false; } |