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

Definition

Namespace:Telerik.Blazor.Components.Validation

Assembly:Telerik.Blazor.dll

Syntax:

C#
public abstract class ValidationBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentValidationBase

Derived Classes: TelerikValidationSummaryValidationMessageBase<TValue>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.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.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
protected ValidationBase()

Methods

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
protected void ValidationStateChanged(object sender, ValidationStateChangedEventArgs e)
Parameters:senderobjecteValidationStateChangedEventArgs

Properties

C#
[CascadingParameter]
public EditContext CascadedEditContext { get; set; }

Specifies the template for validation messages of the component.

C#
[Parameter]
public RenderFragment<IEnumerable<string>> Template { get; set; }
C#
public IEnumerable<string> ValidationMessages { get; set; }