Table of Contents

Class RadzenSelectBar<TValue>

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenSelectBar component.

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

Type Parameters

TValue

The type of the value.

Inheritance
RadzenSelectBar<TValue>
Implements
Inherited Members

Examples

<RadzenSelectBar @bind-Value=@values TValue="IEnumerable<int>" Multiple="true">
    <Items>
        <RadzenSelectBarItem Text="Orders" Value="1" />
        <RadzenSelectBarItem Text="Employees" Value="2" />
        <RadzenSelectBarItem Text="Customers" Value="3" />
    </Items>
</RadzenSelectBar>

Constructors

RadzenSelectBar()

public RadzenSelectBar()

Properties

Data

Gets or sets the data.

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

Property Value

IEnumerable

The data.

HasValue

Gets a value indicating whether this instance has value.

public override bool HasValue { get; }

Property Value

bool

true if this instance has value; otherwise, false.

Items

Gets or sets the items.

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

Property Value

RenderFragment

The items.

Multiple

Gets or sets a value indicating whether this RadzenSelectBar<TValue> is multiple.

[Parameter]
public bool Multiple { get; set; }

Property Value

bool

true if multiple; otherwise, false.

Size

Gets or sets the size.

[Parameter]
public ButtonSize Size { get; set; }

Property Value

ButtonSize

The size.

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.

Methods

AddItem(RadzenSelectBarItem)

Adds the item.

public void AddItem(RadzenSelectBarItem item)

Parameters

item RadzenSelectBarItem

The item.

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

IsSelected(RadzenSelectBarItem)

Determines whether the specified item is selected.

protected bool IsSelected(RadzenSelectBarItem item)

Parameters

item RadzenSelectBarItem

The item.

Returns

bool

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

Refresh()

Refreshes this instance.

public void Refresh()

RemoveItem(RadzenSelectBarItem)

Removes the item.

public void RemoveItem(RadzenSelectBarItem item)

Parameters

item RadzenSelectBarItem

The item.

SelectItem(RadzenSelectBarItem)

Selects the item.

protected Task SelectItem(RadzenSelectBarItem item)

Parameters

item RadzenSelectBarItem

The item.

Returns

Task