menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectionSettingsModel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectionSettingsModel

    Selection configuration for ListBox or ComboBox, including checkbox rendering, selection mode, and select-all support.

    Inheritance
    System.Object
    SelectionSettingsModel
    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 SelectionMode; default: Multiple.

    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

    true displays checkboxes. false hides. Default: false.

    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

    true shows select-all. false (default) hides it.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved