Class RadzenRadioButtonList<TValue>
RadzenRadioButtonList component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenRadioButtonList<TValue> : FormComponent<TValue>, IDisposable, IRadzenFormComponent
Type Parameters
Name | Description |
---|---|
TValue | The type of the value. |
Examples
<RadzenRadioButtonList @bind-Value=@value TValue="int" Orientation="Orientation.Vertical" >
<Items>
<RadzenRadioButtonListItem Text="Orders" Value="1" />
<RadzenRadioButtonListItem Text="Employees" Value="2" />
</Items>
</RadzenRadioButtonList>
Properties
Data
Gets or sets the data.
Declaration
public virtual IEnumerable Data { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable | The data. |
DisabledProperty
Gets or sets the disabled property.
Declaration
public string DisabledProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | The disabled property. |
Items
Gets or sets the items.
Declaration
public RenderFragment Items { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The items. |
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | The orientation. |
TextProperty
Gets or sets the text property.
Declaration
public string TextProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text property. |
ValueProperty
Gets or sets the value property.
Declaration
public string ValueProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value property. |
VisibleProperty
Gets or sets the visible property.
Declaration
public string VisibleProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String | The visible property. |
Methods
AddItem(RadzenRadioButtonListItem<TValue>)
Adds the item.
Declaration
public void AddItem(RadzenRadioButtonListItem<TValue> item)
Parameters
Type | Name | Description |
---|---|---|
RadzenRadioButtonListItem<TValue> | item | The item. |
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
IsSelected(RadzenRadioButtonListItem<TValue>)
Determines whether the specified item is selected.
Declaration
protected bool IsSelected(RadzenRadioButtonListItem<TValue> item)
Parameters
Type | Name | Description |
---|---|---|
RadzenRadioButtonListItem<TValue> | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Refresh()
Refreshes this instance.
Declaration
public void Refresh()
RemoveItem(RadzenRadioButtonListItem<TValue>)
Removes the item.
Declaration
public void RemoveItem(RadzenRadioButtonListItem<TValue> item)
Parameters
Type | Name | Description |
---|---|---|
RadzenRadioButtonListItem<TValue> | item | The item. |
SelectItem(RadzenRadioButtonListItem<TValue>)
Selects the item.
Declaration
protected async System.Threading.Tasks.Task SelectItem(RadzenRadioButtonListItem<TValue> item)
Parameters
Type | Name | Description |
---|---|---|
RadzenRadioButtonListItem<TValue> | item | The item. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |