Skip to main content

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

[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