Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxListBox<TData, TValue>.ShowCheckboxes Property

Specifies whether to display item checkboxes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public bool ShowCheckboxes { get; set; }

#Property Value

Type Description
Boolean

true to display item checkboxes; otherwise, false.

#Remarks

You can embed checkboxes into List Box items to allow users to check/uncheck individual items. If the ShowCheckboxes property is set to true, users can click the items or corresponding checkboxes to select the items.

Note

The ShowCheckboxes property should only be used if SelectionMode is set to Multiple.

<DxListBox Data="@Staff.DataSource"
           TextFieldName="@nameof(Person.Text)"
           SelectionMode="ListBoxSelectionMode.Multiple"
           ShowCheckboxes="true"
           @bind-Values="@Values">
</DxListBox>

@code {
    IEnumerable<Person> Values {
        get => Values;
        set { Values = value; InvokeAsync(StateHasChanged); }
    }
}

ListBox ShowCheckboxes

Run Demo: List Box - Multiple Selection

#Implements

DevExpress.Blazor.IListBox<TData, TValue>.ShowCheckboxes
See Also