MultiSelect
Multi-column DropDown
Features
Sample
Description
In this sample, the "multi-column" class was applied to the drop-down rather than to the control. It was provided by the drop-down-css-class attribute of the c1-multi-select tag.
Source
MultiColumnDropDownController.cs
using Microsoft.AspNetCore.Mvc;
namespace MvcExplorer.Controllers
{
public partial class MultiSelectController
{
public ActionResult MultiColumnDropDown()
{
return View(Models.Cities.GetCities());
}
}
}
MultiColumnDropDown.cshtml
@model IEnumerable<string>
<c1-multi-select placeholder="@MultiSelectRes.MultiColumnDropDown_Placeholder" drop-down-css-class="multi-column">
<c1-items-source source-collection="Model"></c1-items-source>
</c1-multi-select>
@section Description{
@Html.Raw(MultiSelectRes.MultiColumnDropDown_Text0)
}
Documentation