@model IEnumerable @Html.DevExpress().TreeView(t => { var isSelectionTree = ViewData["IsHelpPageSelectionTree"] != null && (bool)ViewData["IsHelpPageSelectionTree"] == true; t.Name = isSelectionTree ? "devHelpPageSelectionTree" : "devHelpPageNavigationTree"; t.Width = new Unit(100, UnitType.Percentage); t.AllowSelectNode = true; if (isSelectionTree) t.ClientSideEvents.NodeClick = "function (s, e) { setDropDownText(e.node.text); }"; else t.ClientSideEvents.NodeClick = "function (s, e) { viewHelpPage(e.node.name); }"; if (Model != null) GreenTree.Nachtragsmanagement.Web.Controllers.MiscController.CreateHelpPageTree(Model, t.Nodes, null); }).GetHtml()