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

Displays validation errors in a tooltip next to the target input element(s). Target elements are matched via TargetSelector (CSS selector), and tooltip placement is controlled by Position. Binds to a field through the inherited For.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TValue

Syntax:

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

Inheritance: objectComponentBaseBaseComponentValidationBaseValidationMessageBase<TValue>TelerikValidationTooltip<TValue>...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ValidationMessageBase<TValue>.SetParametersAsync(ParameterView)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 TelerikValidationTooltip()

Methods

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

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnParametersSet()

Overrides: ValidationMessageBase<TValue>.OnParametersSet()

Properties

Specifies the position of the Validation Tooltip in relation to its target.

C#
[Parameter]
public TooltipPosition Position { get; set; }

Specifies the selector for the target elements of the Validation Tooltip. Uses CSS-type selectors.

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