Class
TelerikRadioGroup<TItem, TValue>

The class for the Telerik RadioGroup Component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

TValue

Syntax:

cs-api-definition
public class TelerikRadioGroup<TItem, TValue> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikRadioGroup<TItem, 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.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.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)

Constructors

TelerikRadioGroup()

Declaration

cs-api-definition
public TelerikRadioGroup()

Properties

AriaDescribedBy

Defines the aria-describedby attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaDescribedBy { get; set; }

Property Value

string

AriaLabel

Describe the aria-label attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaLabel { get; set; }

Property Value

string

AriaLabelledBy

Describe the aria-labelledby attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaLabelledBy { get; set; }

Property Value

string

CascadedEditContext

Declaration

cs-api-definition
[CascadingParameter]
public EditContext CascadedEditContext { get; set; }

Property Value

EditContext

Data

Declaration

cs-api-definition
[Parameter]
public IEnumerable<TItem> Data { get; set; }

Property Value

IEnumerable<TItem>

Enabled

Specifies if the Component accepts user interaction and value changes. The default value is "true".

Declaration

cs-api-definition
[Parameter]
public bool Enabled { get; set; }

Property Value

bool

Id

Specifies the id of the Component.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

ItemTemplate

Defines the item template of the radio items.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }

Property Value

RenderFragment<TItem>

LabelPosition

Defines where to render the radio labels. Default value is After.

Declaration

cs-api-definition
[Parameter]
public RadioGroupLabelPosition LabelPosition { get; set; }

Property Value

RadioGroupLabelPosition

Layout

Defines the layout of the group whether the buttons should be ordered vertically, or horizontally. Default value is Vertical.

Declaration

cs-api-definition
[Parameter]
public RadioGroupLayout Layout { get; set; }

Property Value

RadioGroupLayout

Name

The name attribute that the inputs get.

Declaration

cs-api-definition
[Parameter]
public string Name { get; set; }

Property Value

string

OnBlur

Fires when the component loses focus.

Declaration

cs-api-definition
[Parameter]
public virtual EventCallback OnBlur { get; set; }

Property Value

EventCallback

OnChange

Specifies the callback that's called when the current value is committed (confirmed) by the user - either through the Enter key, or when the Component loses focus.

Declaration

cs-api-definition
[Parameter]
public virtual EventCallback<object> OnChange { get; set; }

Property Value

EventCallback<object>

Size

Specifies the size of the radio buttons. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

TabIndex

Maps to the tabindex attribute of the element. Use it to customize the tabbing focus order on the page.

Declaration

cs-api-definition
[Parameter]
public int? TabIndex { get; set; }

Property Value

int?

TextField

Declaration

cs-api-definition
[Parameter]
public string TextField { get; set; }

Property Value

string

ValidateOn

Defines the event which specifies when validation is triggered.

Declaration

cs-api-definition
[Parameter]
public ValidationEvent ValidateOn { get; set; }

Property Value

ValidationEvent

Value

Specifies the value of the input. Used with two-way binding.

Declaration

cs-api-definition
[Parameter]
public virtual TValue Value { get; set; }

Property Value

TValue

ValueChanged

Specifies the callback that's called when the value changes.

Declaration

cs-api-definition
[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Property Value

EventCallback<TValue>

ValueExpression

Specifies the expression that identifies the bound value.

Declaration

cs-api-definition
[Parameter]
public Expression<Func<TValue>> ValueExpression { get; set; }

Property Value

Expression<Func<TValue>>

ValueField

Declaration

cs-api-definition
[Parameter]
public string ValueField { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

FocusItemAsync(int)

Moves focus to the radio button corresponding to the specified index.

Declaration

cs-api-definition
public Task FocusItemAsync(int index)

Parameters

index

int

Returns

Task

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)