MultiSelect
Multi-column DropDown
In this sample, the "multi-column" class was applied to the drop-down rather than to the control.
Features
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.
1 2 3 4 5 6 7 8 9 10 11 12 | using Microsoft.AspNetCore.Mvc; namespace MvcExplorer.Controllers { public partial class MultiSelectController { public ActionResult MultiColumnDropDown() { return View(Models.Cities.GetCities()); } } } |
1 2 3 4 5 6 7 8 9 | @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) } |