New to Telerik UI for BlazorStart a free 30-day trial

Displays validation messages for a bound field within a Blazor edit context. Use inside forms to show errors for the field specified in the inherited For. Optionally set an element id via Id for accessibility.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TValue

Syntax:

C#
public class TelerikValidationMessage<TValue> : ValidationMessageBase<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentValidationBaseValidationMessageBase<TValue>TelerikValidationMessage<TValue>...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ValidationMessageBase<TValue>.SetParametersAsync(ParameterView)ValidationMessageBase<TValue>.OnParametersSet()ValidationMessageBase<TValue>.ForValidationMessageBase<TValue>.InternalFieldIdentifierValidationBase.ValidationStateChanged(object, ValidationStateChangedEventArgs)ValidationBase.Dispose()ValidationBase.CascadedEditContextValidationBase.TemplateValidationBase.ValidationMessagesBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)...

Constructors

C#
public TelerikValidationMessage()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

Properties

C#
[Parameter]
public string Id { get; set; }