MultiSelect
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 provided by the DropDownCssClass() method of the MultiSelectBuilder.
Source
MultiColumnDropDownController.cs
using System.Web.Mvc;
namespace MvcExplorer.Controllers
{
public partial class MultiSelectController
{
public ActionResult MultiColumnDropDown()
{
return View(Models.Cities.GetCities());
}
}
}
MultiColumnDropDown.cshtml
@model IEnumerable<string>
@Html.C1().MultiSelect().Bind(Model).Placeholder(Resources.MultiSelect.MultiColumnDropDown_Placeholder).DropDownCssClass("multi-column")
@section Description{
@Html.Raw(Resources.MultiSelect.MultiColumnDropDown_Text0)
}
Documentation