ComboBox
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 done using the drop-down-css-class attribute of the c1-combo-box tag.
Source
MultiColumnDropDownController.cs
using Microsoft.AspNetCore.Mvc; namespace MvcExplorer.Controllers { public partial class ComboBoxController { public ActionResult MultiColumnDropDown() { return View(Models.Cities.GetCities()); } } }
MultiColumnDropDown.cshtml
@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) }
Documentation