protected override void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { if (eventArgs.Status == ValidationStatus.Error) { ErrorText = eventArgs.Message; } }
/// <inheritdoc/> protected override void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { base.OnValidationStatusChanged(sender, eventArgs); // Since radios validation works little different when placed in radio group we need // to notify them to re-render when validation changes. RadioCheckedChanged?.Invoke(this, new(CheckedValue) ); }
protected override void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { if (eventArgs.Status == ValidationStatus.Error) { ErrorText = eventArgs.Messages?.Count() > 0 ? string.Join(";", eventArgs.Messages) : null; } }
protected void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { if (previousValidationStatus != eventArgs.Status) { previousValidationStatus = eventArgs.Status; DirtyClasses(); StateHasChanged(); } }
/// <inheritdoc/> protected async override void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { if (eventArgs.Status == ValidationStatus.Error) { ErrorMessages = eventArgs.Messages?.Where(x => !string.IsNullOrEmpty(x))?.Count() > 0 ? eventArgs.Messages?.Where(x => !string.IsNullOrEmpty(x))?.ToArray() : null; } await InvokeAsync(StateHasChanged); }
private void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs e) { DirtyClasses(); StateHasChanged(); }
protected virtual void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { }
/// <inheritdoc/> protected virtual async void OnValidationStatusChanged(object sender, ValidationStatusChangedEventArgs eventArgs) { await InvokeAsync(StateHasChanged); }