ComboBox
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 done using the drop-down-css-class attribute of the c1-combo-box tag.
1 2 3 4 5 6 7 8 9 10 11 12 | using Microsoft.AspNetCore.Mvc; namespace MvcExplorer.Controllers { public partial class ComboBoxController { public ActionResult MultiColumnDropDown() { return View(Models.Cities.GetCities()); } } } |
1 2 3 4 5 6 7 8 9 | @model IEnumerable< string > < c1-combo-box selected-index = "0" is-editable = "false" drop-down-css-class = "multi-column" > < c1-items-source source-collection = "Model" ></ c1-items-source > </ c1-combo-box > @section Description{ @Html .Raw(ComboBoxRes.MultiColumnDropDown_Text0) } |