Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSelectBar<TValue>

    RadzenSelectBar component.

    Inheritance
    System.Object
    RadzenComponent
    FormComponent<TValue>
    RadzenSelectBar<TValue>
    Implements
    IDisposable
    IRadzenFormComponent
    IRadzenSelectBar
    Inherited Members
    FormComponent<TValue>.Name
    FormComponent<TValue>.TabIndex
    FormComponent<TValue>.Placeholder
    FormComponent<TValue>.Disabled
    FormComponent<TValue>.EditContext
    FormComponent<TValue>.Form
    FormComponent<TValue>.ValueChanged
    FormComponent<TValue>.IsBound
    FormComponent<TValue>._value
    FormComponent<TValue>.Value
    FormComponent<TValue>.Change
    FormComponent<TValue>.FieldIdentifier
    FormComponent<TValue>.ValueExpression
    FormComponent<TValue>.SetParametersAsync(ParameterView)
    FormComponent<TValue>.Dispose()
    FormComponent<TValue>.GetValue()
    FormComponent<TValue>.OnContextMenu(MouseEventArgs)
    FormComponent<TValue>.GetClassList(String)
    FormComponent<TValue>.FormFieldContext
    FormComponent<TValue>.CurrentPlaceholder
    FormComponent<TValue>.FocusAsync()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.OnInitialized()
    RadzenComponent.Reference
    RadzenComponent.OnAfterRenderAsync(Boolean)
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSelectBar<TValue> : FormComponent<TValue>, IDisposable, IRadzenFormComponent, IRadzenSelectBar
    Type Parameters
    Name Description
    TValue

    The type of the value.

    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>

    Properties

    Data

    Gets or sets the data.

    Declaration
    public virtual IEnumerable Data { get; set; }
    Property Value
    Type Description
    IEnumerable

    The data.

    HasValue

    Gets a value indicating whether this instance has value.

    Declaration
    public override bool HasValue { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has value; otherwise, false.

    Overrides
    Radzen.FormComponent<TValue>.HasValue

    Items

    Gets or sets the items.

    Declaration
    public RenderFragment Items { get; set; }
    Property Value
    Type Description
    RenderFragment

    The items.

    Multiple

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

    Declaration
    public bool Multiple { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if multiple; otherwise, false.

    Orientation

    Gets or sets the orientation. Set to Orientation.Horizontal by default.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    Orientation

    The orientation.

    Size

    Gets or sets the size. Set to ButtonSize.Medium by default.

    Declaration
    public ButtonSize Size { get; set; }
    Property Value
    Type Description
    ButtonSize

    The size.

    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.

    Methods

    AddItem(RadzenSelectBarItem)

    Adds the item.

    Declaration
    public void AddItem(RadzenSelectBarItem item)
    Parameters
    Type Name Description
    RadzenSelectBarItem item

    The item.

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    System.String
    Overrides
    RadzenComponent.GetComponentCssClass()

    IsSelected(RadzenSelectBarItem)

    Determines whether the specified item is selected.

    Declaration
    protected bool IsSelected(RadzenSelectBarItem item)
    Parameters
    Type Name Description
    RadzenSelectBarItem item

    The item.

    Returns
    Type Description
    System.Boolean

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

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()

    Refresh()

    Refreshes this instance.

    Declaration
    public void Refresh()

    RemoveItem(RadzenSelectBarItem)

    Removes the item.

    Declaration
    public void RemoveItem(RadzenSelectBarItem item)
    Parameters
    Type Name Description
    RadzenSelectBarItem item

    The item.

    SelectItem(RadzenSelectBarItem)

    Selects the item.

    Declaration
    protected async Task SelectItem(RadzenSelectBarItem item)
    Parameters
    Type Name Description
    RadzenSelectBarItem item

    The item.

    Returns
    Type Description
    Task

    Implements

    IDisposable
    IRadzenFormComponent
    IRadzenSelectBar

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT