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 by using "DropDownCssClass".
Source
MultiColumnDropDownController.cs
using System.Web.Mvc; namespace MvcExplorer.Controllers { public partial class ComboBoxController { public ActionResult MultiColumnDropDown() { return View(Models.Cities.GetCities()); } } }
MultiColumnDropDown.cshtml
@model IEnumerable<string> @Html.C1().ComboBox().Bind(Model).SelectedIndex(0).IsEditable(false).DropDownCssClass("multi-column") @section Description{ @Html.Raw(Resources.ComboBox.MultiColumnDropDown_Text0) }
Documentation