ComboBox
Multi-column DropDown
In this sample, the "multi-column" class was applied to the drop-down rather than to the control.
1 2 3 4 5 6 7 8 9 10 11 12 | using System.Web.Mvc; namespace MvcExplorer.Controllers { public partial class ComboBoxController { public ActionResult MultiColumnDropDown() { return View(Models.Cities.GetCities()); } } } |
1 2 3 4 5 6 7 | @model IEnumerable< string > @Html .C1().ComboBox().Bind(Model).SelectedIndex(0).IsEditable( false ).DropDownCssClass( "multi-column" ) @section Description{ @Html .Raw(Resources.ComboBox.MultiColumnDropDown_Text0) } |