A checkbox group component that allows users to select multiple options from a list of choices. RadzenCheckBoxList displays multiple checkboxes with configurable layout, orientation, and data binding, binding to a collection of selected values. Allows multiple selections, unlike radio button lists. The bound value is a collection of all checked items. Supports multiple selection where users can check/uncheck any number of items, data binding via Data property or static item declaration, configurable layout including orientation (Horizontal/Vertical), gap spacing, wrapping, alignment, and justification, custom item templates for complex checkbox content, disabled/read-only items individually or for the entire list, and keyboard navigation (Arrow keys, Space, Enter) for accessibility. The Value property is IEnumerable<TValue> containing all selected item values. Common uses include multi-select filters, preference selections, or feature toggles.
FormComponent<IEnumerable<TValue>>.SetParametersAsync
FormComponent<IEnumerable<TValue>>.Dispose
FormComponent<IEnumerable<TValue>>.GetValue
FormComponent<IEnumerable<TValue>>.OnContextMenu
FormComponent<IEnumerable<TValue>>.GetClassList
FormComponent<IEnumerable<TValue>>.FocusAsync
FormComponent<IEnumerable<TValue>>.Name
FormComponent<IEnumerable<TValue>>.TabIndex
FormComponent<IEnumerable<TValue>>.Placeholder
FormComponent<IEnumerable<TValue>>.Disabled
FormComponent<IEnumerable<TValue>>.EditContext
FormComponent<IEnumerable<TValue>>.Form
FormComponent<IEnumerable<TValue>>.ValueChanged
FormComponent<IEnumerable<TValue>>.IsBound
FormComponent<IEnumerable<TValue>>.Value
FormComponent<IEnumerable<TValue>>.Change
FormComponent<IEnumerable<TValue>>.FieldIdentifier
FormComponent<IEnumerable<TValue>>.ValueExpression
FormComponent<IEnumerable<TValue>>.FormFieldContext
FormComponent<IEnumerable<TValue>>.CurrentPlaceholder
FormComponent<IEnumerable<TValue>>._value
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenCheckBoxList<TValue> : FormComponent<IEnumerable<TValue>>, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent| Name | Description |
|---|---|
| TValue | The type of individual item values. The bound Value is IEnumerable<TValue> containing all selected items. |
Static checkbox list:
<RadzenCheckBoxList @bind-Value=@selectedOptions TValue="string">
<Items>
<RadzenCheckBoxListItem Text="Email notifications" Value="email" />
<RadzenCheckBoxListItem Text="SMS notifications" Value="sms" />
<RadzenCheckBoxListItem Text="Push notifications" Value="push" />
</Items>
</RadzenCheckBoxList>
@code {
IEnumerable<string> selectedOptions = new[] { "email" };
}
Data-bound checkbox list:
<RadzenCheckBoxList @bind-Value=@selectedIds TValue="int" Data=@categories
TextProperty="Name" ValueProperty="Id" Orientation="Orientation.Horizontal" />A checkbox group component that allows users to select multiple options from a list of choices. RadzenCheckBoxList displays multiple checkboxes with configurable layout, orientation, and data binding, binding to a collection of selected values. Allows multiple selections, unlike radio button lists. The bound value is a collection of all checked items. Supports multiple selection where users can check/uncheck any number of items, data binding via Data property or static item declaration, configurable layout including orientation (Horizontal/Vertical), gap spacing, wrapping, alignment, and justification, custom item templates for complex checkbox content, disabled/read-only items individually or for the entire list, and keyboard navigation (Arrow keys, Space, Enter) for accessibility. The Value property is IEnumerable<TValue> containing all selected item values. Common uses include multi-select filters, preference selections, or feature toggles.
public RadzenCheckBoxList<TValue>()Gets or sets the items alignment.
public AlignItems AlignItems { get; set; }
| Type | Description |
|---|---|
| AlignItems | Gets or sets the items alignment. |
Gets or sets a value indicating whether the user can select all values. Set to false by default.
public bool AllowSelectAll { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the user can select all values. Set to false by default. |
Gets or sets the data used to generate items.
public Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets or sets the data used to generate items. |
Gets or sets the disabled property.
public string DisabledProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the disabled property. |
Gets or sets the spacing between items
public string Gap { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the spacing between items |
Gets a value indicating whether this instance has value.
public bool HasValue { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether this instance has value. |
Gets or sets the items that will be concatenated with generated items from Data.
public RenderFragment Items { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the items that will be concatenated with generated items from Data. |
Gets or sets the content justify.
public JustifyContent JustifyContent { get; set; }
| Type | Description |
|---|---|
| JustifyContent | Gets or sets the content justify. |
Gets or sets the orientation.
public Orientation Orientation { get; set; }
| Type | Description |
|---|---|
| Orientation | Gets or sets the orientation. |
Gets or sets a value indicating whether is read only.
public bool ReadOnly { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether is read only. |
Gets or sets the read-only property.
public string ReadOnlyProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the read-only property. |
Gets or sets the select all text.
public string SelectAllText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the select all text. |
Gets or sets the text property.
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text property. |
Gets or sets the value property.
public string ValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the value property. |
Adds the item.
public void AddItem(RadzenCheckBoxListItem<TValue> item)
| Type | Name | Description |
|---|---|---|
| RadzenCheckBoxListItem<TValue> | item | The item. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Determines whether the specified item is selected.
protected bool IsSelected(RadzenCheckBoxListItem<TValue> item)
| Type | Name | Description |
|---|---|---|
| RadzenCheckBoxListItem<TValue> | item | The item. |
| Type | Description |
|---|---|
| bool | true if the specified item is selected; otherwise, false. |
Removes the item.
public void RemoveItem(RadzenCheckBoxListItem<TValue> item)
| Type | Name | Description |
|---|---|---|
| RadzenCheckBoxListItem<TValue> | item | The item. |
Selects the item.
protected Task SelectItem(RadzenCheckBoxListItem<TValue> item)
| Type | Name | Description |
|---|---|---|
| RadzenCheckBoxListItem<TValue> | item | The item. |
| Type | Description |
|---|---|
| Task |