Multiple

Setting the Size property to a number greater than 1 and the RowSelection property to Multiple true allows the user to select multiple options.

Loading...
Selected Customers
Razor code

SelectModel customerSelect = new SelectModel(DataSourceType.SQLite, "northwind", "Customers")
{
    Caption = "Customer",
    Searchable = true,
    Size = 20,
    RowSelection = RowSelection.Multiple,
    Columns = new List()
    {
        new SelectColumn("CustomerID"),
        new SelectColumn("CompanyName")
    }
};
customerSelect.ClientEvents[SelectClientEvent.OptionSelected] = "showSelectedCustomer";

<div class="flex flex-row">
    <div class="flex">
        @(await new DbNetSuiteCore.SelectControl(HttpContext).Render(customerSelect))
    </div>
    <div class="flex flex-column">
        <h5>Selected Customers</h5>
        <div id="selectedCustomers"></div>
    </div>
</div>