DxListBox<TData, TValue>.ShowCheckboxes Property
Specifies whether to display item checkboxes.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool ShowCheckboxes { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
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); }
}
}

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