Class SelectionSettingsModel
Selection configuration for ListBox or ComboBox, including checkbox rendering, selection mode, and select-all support.
Inheritance
Namespace: Syncfusion.Blazor.DropDowns
Assembly: Syncfusion.Blazor.dll
Syntax
public class SelectionSettingsModel : Object
Remarks
SelectionSettingsModel makes it easy to enable checkbox selection, change single/multi behavior, and set up select-all toggles in dropdown-like controls.
Examples
<SfListBox TValue="string" DataSource="@People">
<SelectionSettings ShowCheckbox="true" Mode="SelectionMode.Multiple" ShowSelectAll="true" />
</SfListBox>
Constructors
SelectionSettingsModel()
Declaration
public SelectionSettingsModel()
Properties
CheckboxPosition
Controls which side of each list item the selection checkbox is rendered (left or right).
Declaration
public CheckBoxPosition CheckboxPosition { get; set; }
Property Value
Type | Description |
---|---|
CheckBoxPosition | CheckBoxPosition enumeration; left (default) or right. |
Mode
Gets or sets the list selection mode: Single
(only one selection allowed) or Multiple
.
Declaration
public SelectionMode Mode { get; set; }
Property Value
Type | Description |
---|---|
SelectionMode | A |
Remarks
Setting this to Multiple allows box-checked multi-selection. Use Single for radio/select behavior.
ShowCheckbox
If true, shows a checkbox inside each list item for bulk selection support.
Declaration
public bool ShowCheckbox { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowSelectAll
Displays a select-all option above the list for easy multi-selection, if true.
Declaration
public bool ShowSelectAll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|