@model GreenTree.Nachtragsmanagement.Web.Models.Global.FooterModel @Html.DevExpress().PopupControl(s => { s.Name = "devPopupControlRoles"; s.HeaderText = "Rolle wechseln"; s.ShowFooter = false; s.ShowMaximizeButton = false; s.Modal = true; s.Width = new Unit(350, UnitType.Pixel); s.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter; s.PopupVerticalAlign = PopupVerticalAlign.WindowCenter; s.CloseAction = CloseAction.CloseButton; s.SetContent(() => { Html.DevExpress().ListBox(l => { l.Name = "devListBoxRoles"; l.Properties.TextField = "Description"; l.Properties.ValueField = "ID"; l.Width = new Unit(100, UnitType.Percentage); l.Height = new Unit(250, UnitType.Pixel); l.Properties.RootStyle.Border.BorderStyle = BorderStyle.None; }).BindList(ViewData["Roles"]).GetHtml(); Html.RenderPartial( "~/Views/Shared/_PopupButtonPanel.cshtml", new GreenTree.Nachtragsmanagement.Web.Models.Global.PopupModel { PopupName = "devPopupControlRoles", AcceptFunction = "function (s, e) { acceptFooterRoleSelection(); }" }); }); s.Styles.Content.Paddings.Padding = new Unit(0); }).GetHtml()