@model IEnumerable @section TitleContent{ Add Existing Series } @section MainContent{ @{ Html.Telerik().Window() .Name("Window") .Title("Add New Series") .Modal(true) .Buttons(b => b.Close()) .Width(500) .Height(200) .Visible(false) .Draggable(true) .Resizable(resizing => resizing.Enabled(false)) .LoadContentFrom("AddNew", "AddSeries") .Render(); } @if (Model.Count() == 0) { @Html.DisplayText("No Series to Add"); } @Html.DropDownList("masterDropbox", (SelectList) ViewData["qualities"], new {style = "width: 100px;", id = "masterDropboxId"}) @Html.Telerik().DropDownList().Name("tester").BindTo((SelectList) ViewData["qualities"]).HtmlAttributes( new {style = "width: 100px", @class = "qualityDropbox"}) @foreach (var path in Model) { Html.RenderAction("RenderPartial", "AddSeries", new {path}); } }