Table of Contents

Class RadzenRadioButtonList<TValue>

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenRadioButtonList component.

public class RadzenRadioButtonList<TValue> : FormComponent<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent

Type Parameters

TValue

The type of the value.

Inheritance
RadzenRadioButtonList<TValue>
Implements
Inherited Members

Examples

<RadzenRadioButtonList @bind-Value=@value TValue="int" Orientation="Orientation.Vertical" >
    <Items>
        <RadzenRadioButtonListItem Text="Orders" Value="1" />
        <RadzenRadioButtonListItem Text="Employees" Value="2" />
    </Items>
</RadzenRadioButtonList>

Constructors

RadzenRadioButtonList()

public RadzenRadioButtonList()

Properties

Data

Gets or sets the data.

[Parameter]
public virtual IEnumerable Data { get; set; }

Property Value

IEnumerable

The data.

DisabledProperty

Gets or sets the disabled property.

[Parameter]
public string DisabledProperty { get; set; }

Property Value

string

The disabled property.

Items

Gets or sets the items.

[Parameter]
public RenderFragment Items { get; set; }

Property Value

RenderFragment

The items.

Orientation

Gets or sets the orientation.

[Parameter]
public Orientation Orientation { get; set; }

Property Value

Orientation

The orientation.

TextProperty

Gets or sets the text property.

[Parameter]
public string TextProperty { get; set; }

Property Value

string

The text property.

ValueProperty

Gets or sets the value property.

[Parameter]
public string ValueProperty { get; set; }

Property Value

string

The value property.

VisibleProperty

Gets or sets the visible property.

[Parameter]
public string VisibleProperty { get; set; }

Property Value

string

The visible property.

Methods

AddItem(RadzenRadioButtonListItem<TValue>)

Adds the item.

public void AddItem(RadzenRadioButtonListItem<TValue> item)

Parameters

item RadzenRadioButtonListItem<TValue>

The item.

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

IsSelected(RadzenRadioButtonListItem<TValue>)

Determines whether the specified item is selected.

protected bool IsSelected(RadzenRadioButtonListItem<TValue> item)

Parameters

item RadzenRadioButtonListItem<TValue>

The item.

Returns

bool

true if the specified item is selected; otherwise, false.

Refresh()

Refreshes this instance.

public void Refresh()

RemoveItem(RadzenRadioButtonListItem<TValue>)

Removes the item.

public void RemoveItem(RadzenRadioButtonListItem<TValue> item)

Parameters

item RadzenRadioButtonListItem<TValue>

The item.

SelectItem(RadzenRadioButtonListItem<TValue>)

Selects the item.

protected Task SelectItem(RadzenRadioButtonListItem<TValue> item)

Parameters

item RadzenRadioButtonListItem<TValue>

The item.

Returns

Task